Check Your Windows Environment
The first step is to make sure your Windows environment is ready for this mapping. I am using Windows 7 x64, so I am not sure if this applies to other Windows versions, but it does not hurt to check.
1. WebClient Windows Service must be running as discussed here.
- Open the Services management console (Start / Run / services.msc) and locate the WebClient service.
- Start the WebClient service if it is stopped.
- Open its Properties window, and set the Startup type to Automatic.
2. Internet Explorer - LAN Settings should have Automatically detect settings unchecked
- Open Internet Explorer.
- Go to Tools, Internet Options.
- Click on the Connections tab, and click on the LAN Settings.
- Uncheck the Automatically detect settings.
The second step is to determine the proper address (WebDAV access address) you should use to connect to a Skydrive folder. You cannot directly use the URL shown in your browser since it does not work. You will need to get the WebDAV access address by using one of the following options:
- Manually figure out the address based on the browser URL as described here. I do not recommend this method since the folder name might be different than the one seen on the browser. For example, here it mentions that "Documents" folder should be "^2Documents", but for me it was "^.Documents".
- Use MS Office 2010 to save a document to Skydrive and then be able to see the WebDAV access address as described here. It would be a good option if you have this version of MS Office.
- Build your own application that access http://docs.live.net/SkyDocsService.svc and query for the WebDAV folders. It is good to know about this WCF service, but it will take sometime to build a client application.
- Use an existing application that uses the SkyDocsService and retrieve the information we need: http://skydrivesimpleviewer.codeplex.com/. This open source project provides a command prompt application dumpurls.exe and also a WPF application SkyDriveSimpleViewer.exe.
DumpUrls.exe firstname.lastname@example.org p4ssw0rd
The output is something like:
You will not use these URLs directly, but the corresponding paths instead:
Map Skydrive as Network Drive
Although you can map it by using Windows Explorer, I mapped using a single command line in the Command Prompt window. So, open a Command Prompt window and run the following command to map a folder named MyFolder to the drive Z by using your credentials:
net use Z: "\\xxxxxx.docs.live.net@SSL\yyyyyyyyyyyyyyyy\MyFolder" /user:email@example.com p4ssw0rd /persistent:yes
The expected output is:
The command completed successfully.
Note: these are the errors I had before I fixed my Windows environment as explained in the beginning of this article:
- System error 5 has occurred: the solution for me was to change the IE setting described above.
- System error 1920 has occurred: the solution was to restart the WebClient service as described above.