How to map OneDrive as a network drive

SOLUTION GUIDE

To map OneDrive as a network drive in Windows, turn on the WebClient service, copy your OneDrive address from the browser and add it in File Explorer with Map network drive. That native WebDAV drive depends on a browser sign-in that expires, so for a drive every user keeps, IT can deploy Cloud Drive Mapper, which maps each user's OneDrive at every sign-in. The OneDrive sync client also puts OneDrive in File Explorer, but as a synced folder rather than a drive.

Why map OneDrive as a drive instead of syncing it?

Because a drive letter works where a synced folder struggles. Many organisations use OneDrive as the replacement for each user's home drive (often H:), and desktop apps, scripts and shortcuts that pointed at that drive keep working when it still exists.

Syncing also puts a full copy of each user's files on every device they sign in to. That is a poor fit for shared workstations, small SSDs and virtual desktops, where the copy has to be rebuilt or stored in a growing profile. Our guide to the cost of the OneDrive cache in VDI goes into the numbers.

How do you map OneDrive as a network drive in Windows?

Windows can do it natively with Map network drive, which connects to OneDrive over WebDAV. On a Windows 11 PC:

  1. Make sure the WebClient service is running. Windows no longer starts it by default, so open services.msc, set WebClient's startup type to Automatic and start it.
  2. Add your tenant to the Trusted sites zone (Internet Options, then Security, then Trusted sites), for example https://contoso-my.sharepoint.com and https://*.microsoftonline.com.
  3. Sign in to OneDrive in your browser and choose Stay signed in. Copy the address of your files, up to and including /Documents, for example https://contoso-my.sharepoint.com/personal/jane_contoso_com/Documents.
  4. In File Explorer, select This PC, then Map network drive. In Windows 11 it's under the … menu.
  5. Choose a drive letter, paste the address, tick Reconnect at sign-in and select Finish. If Windows rejects the address, use the WebDAV form instead: \\contoso-my.sharepoint.com@SSL\DavWWWRoot\personal\jane_contoso_com\Documents.

Why does a mapped OneDrive drive keep disconnecting?

Because the drive depends on a browser sign-in that expires. When it does, the drive stops working until the user signs in again. Native mapping has three lasting problems:

  • The sign-in expires. Microsoft's own guidance says the setup is only supported when the sign-in is done in Internet Explorer, which Microsoft retired in 2022.
  • WebDAV is on its way out. Microsoft deprecated the WebClient service in November 2023. It still works, but it's no longer being developed.
  • Each user sets it up. Scripts can automate the mapping, but they can't stop the sign-in expiring.

Microsoft describes WebDAV mapping as slower and less reliable than syncing. It's fine for an occasional personal shortcut. It isn't a way to give a whole organisation its home drives.

How do you map OneDrive with Cloud Drive Mapper?

You configure Cloud Drive Mapper (CDM) once and it maps OneDrive for every user:

  1. In Iris, our admin portal, set up the OneDrive mapping and the drive letter you want it to use.
  2. Deploy the CDM client with Intune, SCCM, Group Policy, NinjaOne, PatchMyPC or a command-line install.
  3. At sign-in, each user's OneDrive for Business appears as a network drive. CDM handles re-authentication itself, so the drive stays connected.

What does Cloud Drive Mapper add?

  • A real network drive that works with any desktop app that expects one.
  • No sync, no 300,000-item ceiling and no growing local copy.
  • Support for Windows 11, Windows Server 2016 and later, Azure Virtual Desktop, Citrix, Omnissa Horizon and RDS, including non-persistent desktops.
  • Central management and silent deployment by IT.

Frequently asked questions

Can I map OneDrive to a drive letter without third-party software?

Yes. Windows can map OneDrive over WebDAV using Map network drive, once the WebClient service is running. The mapping relies on a browser sign-in that expires, so drives disconnect and users have to sign in or re-run a script to restore them. Microsoft has also deprecated the WebClient service.

Can a mapped OneDrive drive replace our users' home drives?

Yes. With Cloud Drive Mapper, each user's OneDrive for Business can appear under the drive letter their home drive used to have, so apps and shortcuts that pointed at it keep working. You can also redirect Windows folders such as Documents and Desktop to it.

Do I need to uninstall the OneDrive sync client?

No. CDM connects to Microsoft 365 directly through the Microsoft Graph API and doesn't need the sync client. You can remove the sync client or leave it installed alongside CDM.

Does a mapped OneDrive drive work on Citrix and Azure Virtual Desktop?

Yes. CDM supports multi-session and non-persistent desktops, including mandatory profiles, on Azure Virtual Desktop, Citrix, Omnissa Horizon and RDS.

Are files stored on the device?

Not as a full copy. CDM fetches files on demand and keeps only a small, self-managing cache, unlike the sync client's local copy of everything.

Related solutions

← Back to all solutions

Get started with Cloud Drive Mapper

The fastest way to see if CDM fits your environment is to try it for 30 days, free.

Look after Microsoft 365 for your customers? See why MSPs and resellers sell Cloud Drive Mapper →