Avantguard Computer & Security Systems

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

  1. Open OneDrive in a web browser
  2. Log in and navigate to your files
  3. Look at the URL: https://onedrive.live.com/?cid=XXXXXXXXXXXXXXXX
  4. 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:

  1. Open Credential Manager
  2. Add Windows Credential: d.docs.live.net
  3. Enter your Microsoft account credentials

Alternative: WebDAV Access

OneDrive also supports WebDAV:

https://d.docs.live.net/YOURCIDHERE/