This is an old revision of the document!
Connecting Securely to Microsoft OneDrive with WebDAV
With WinSCP you can easily upload, manage or backup files on your Microsoft OneDrive cloud storage over WebDAV protocol.
Before starting you should have the latest version of WinSCP installed.
Advertisement
Connecting
Find out your “OneDrive customer ID”:
- In your web browser, login to your OneDrive.
- After you log in, your URL should be like:
https://onedrive.live.com/?id=root&cid=ABCDEFGHIJKLMNOP
TheABCDEFGHIJKLMNOP
part is your “customer ID”. Select it and copy it to the clipboard.
Start WinSCP. Login dialog will appear. On the dialog:
- Make sure New site node is selected.
- On the New site node, select WebDAV protocol and TLS/SSL Implicit encryption.
- Enter Host name box.
- Enter your Microsoft account username/email into the User name box.
- Enter your Microsoft account password into the Password box.
- Press the Advanced button to open Advanced site settings dialog and go to Environment > Directories page.
- Paste your “OneDrive customer ID” into the Remote directory box and add a slash in front of it, i.e. like
/ABCDEFGHIJKLMNOP
. - Submit the Advanced site settings dialog with the OK button.
- Save your site settings using the Save button.
- Login using the Login button.
Further reading
- Guide to uploading files to server;
- Guide to automating operations (including upload).
Advertisement