OneDrive Network Drive Trick
Map OneDrive as a Network Drive
This trick allows you to access OneDrive through a mapped network drive letter.
Step 1: Find Your CID
- Open OneDrive in a web browser
- Log in and navigate to your files
- Look at the URL:
https://onedrive.live.com/?cid=XXXXXXXXXXXXXXXX - Copy the CID value (the hexadecimal string)
Step 2: Map the Network Drive
# Open Command Prompt as Administrator
net use Z: https://d.docs.live.net/YOURCIDHERE /persistent:yes
Replace YOURCIDHERE with your actual CID.
Troubleshooting
If you get authentication errors:
- Open Credential Manager
- Add Windows Credential:
d.docs.live.net - Enter your Microsoft account credentials
Alternative: WebDAV Access
OneDrive also supports WebDAV:
https://d.docs.live.net/YOURCIDHERE/