Why a mapped SharePoint drive stops working
A network drive mapped to a SharePoint Online library connects over WebDAV and depends on a sign-in cookie in the browser. When the cookie expires, the site is not in Trusted sites, or the Windows WebClient service is not running, the drive stops opening. Microsoft documents fixes for all three, and recommends syncing the library instead.
Microsoft is direct about the technology: "Mapping a network drive uses WebDav, an older technology which is slower and less reliable than syncing SharePoint files with the new OneDrive sync client." Its support statement is narrow too: "A mapped network drive that's connected to SharePoint Online is only supported when these steps are performed within Internet Explorer." Microsoft stopped supporting Internet Explorer 11 for Microsoft 365 apps and services in June 2022, so a mapped drive is something to keep running while you move people to Sync, not something to roll out.
| What you see | Most likely cause | Fix |
|---|---|---|
| "\\Path is not accessible. You might not have permission to use this network resource." | The sign-in session the drive uses has expired, or you have no access to the library | Sign in again and choose to stay signed in, then check your permissions |
| "Access Denied. Before opening files in this location, you must first add the web site to your trusted site list" | The SharePoint address is not in the Trusted sites zone | Add the SharePoint addresses to Trusted sites |
| The drive disappears or will not reconnect after a restart | The WebClient service is stopped or set to start manually | Set WebClient to Automatic and start it |
| The drive is very slow to list folders | WebDAV enumeration is slow on some Windows versions | Use Sync for large libraries |
The two error messages
Microsoft's troubleshooting article lists two messages when you browse to a mapped drive:
- "\\Path is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions."
- "Access Denied. Before opening files in this location, you must first add the web site to your trusted site list, browse to the web site, and select the option to login automatically"
Both usually mean the drive has lost its sign-in, not that your permissions changed. Work through the three fixes below before asking for access. If the library also refuses to open in the browser, the problem is permissions; SharePoint 'Access Denied' and 'You Need Permission' covers that.
Fix 1: Sign in again and stay signed in
The drive uses the same session as your browser sign-in, so it needs a persistent one.
- Open the SharePoint site in your browser and sign out.
- Close all browser windows.
- Sign in to the site again with your work or school account, and choose to stay signed in.
- Open the mapped drive again.
Microsoft's note explains why it keeps coming back: "After you map a network drive to SharePoint Online, you must occasionally connect to the SharePoint Online site by using Internet Explorer and select the Stay signed in option. This prevents the session that's used by the mapped network drive from expiring."
If your organization signs people out after a period of inactivity, that policy shortens the session as well. SharePoint Online login explains idle session sign-out and who sets it.
Fix 2: Add SharePoint to Trusted sites
- In Windows, open Internet options.
- Select the Security tab, select Trusted sites, then select Sites.
- Add your SharePoint address, for example
https://contoso.sharepoint.com, and select Add. - Select Close, then OK.
Microsoft also recommends adding two Microsoft 365 sign-in addresses to the same zone: https://*.microsoftonline.com and https://*.microsoft.com.
For the related View in File Explorer command, Microsoft says both the site address and its -files address are needed, for example https://contoso.sharepoint.com and https://contoso-files.sharepoint.com. Adding both does no harm for a mapped drive either.
Fix 3: Keep the WebClient service running
Windows talks WebDAV through the WebClient service. Microsoft: "To keep the connection after you restart the computer, make sure that the WebClient service is running. (Be aware that the cookie will eventually time out.)"
- Make sure the latest Windows updates are applied.
- Select Start, type
services.msc, and press Enter. - Find WebClient and check that its status is running.
- If it is not, double-click it, set Startup type to Automatic, select Apply, then Start, then OK.
Microsoft is specific about the startup type: "The choice of Automatic is necessary for persistent drive mappings."
Slow drives and older Windows versions
Microsoft documents slower-than-expected mapped drive performance on Windows 8 and Windows Server 2012, and says a hotfix was released for it. It also names a hotfix for an error after installing Internet Explorer 10 on Windows 8 or Windows 7. On current Windows versions, apply the latest updates; if a large library is still slow to list, that is WebDAV, and Sync is the fix.
Use Sync or a OneDrive shortcut instead
The replacement for a mapped drive is already in every library:
| Mapped network drive | Sync or a OneDrive shortcut | |
|---|---|---|
| Technology | WebDAV over the browser's sign-in cookie | The OneDrive sync app |
| Sign-in | Expires and has to be renewed in the browser | Signed in through Windows |
| Large libraries | Slow to list | Files On-Demand shows every file without using local storage |
| Microsoft's position | "Slower and less reliable than syncing" | Recommended |
To start, open the library in the browser and select Sync, or add a shortcut to the library in OneDrive. The files appear under your organization's name in File Explorer, where a mapped drive used to be. If sync itself misbehaves, see OneDrive sync issues with SharePoint libraries.
One more reason to move: during a ransomware incident, Microsoft's first instruction is to "immediately stop OneDrive sync or disconnect the mapped drive to a SharePoint library", because both channels carry infected files into SharePoint. With Sync, that is one action in the OneDrive app on each computer.
Frequently asked questions
Can you map a network drive to SharePoint Online?
You can, and Microsoft documents how to fix one, but it uses WebDAV, which Microsoft describes as "slower and less reliable than syncing SharePoint files with the new OneDrive sync client." Microsoft also states that a mapped drive to SharePoint Online is supported only when the sign-in steps are done within Internet Explorer.
Why does my SharePoint mapped drive keep disconnecting?
The drive relies on the sign-in cookie from your browser, which expires. Sign in to the site again and choose to stay signed in. Also make sure the WebClient service is set to Automatic so the drive reconnects after a restart.
What does "Path is not accessible" mean for a SharePoint drive?
Usually that the drive's sign-in session has expired. Sign in to the SharePoint site in your browser, choose to stay signed in, and try the drive again. If the library will not open in the browser either, check your permissions.
Why do I get "Access Denied. Before opening files in this location, you must first add the web site to your trusted site list"?
The SharePoint address is not in the Windows Trusted sites zone. Add https://<tenant>.sharepoint.com, and Microsoft recommends https://*.microsoftonline.com and https://*.microsoft.com too.
Do I need the WebClient service for a SharePoint drive?
Yes. Windows connects to SharePoint over WebDAV through the WebClient service. Set it to Automatic; Microsoft says that is necessary for persistent drive mappings.
What should I use instead of a mapped drive?
Select Sync in the library, or add a shortcut to the library in OneDrive. Both put the files in File Explorer through the OneDrive sync app, which Microsoft recommends over WebDAV.
Is a mapped drive the same as View in File Explorer?
Both open a SharePoint library in Windows File Explorer over WebDAV and share the same fixes. View in File Explorer is a command in the library; a mapped drive gives the library a drive letter. SharePoint View in File Explorer covers the command.
Related reading
- SharePoint View in File Explorer: enable it in Edge and fix errors - the same WebDAV connection, from the library's view menu.
- OneDrive sync issues with SharePoint libraries - when the recommended alternative misbehaves.
- SharePoint Online login: how to sign in and fix sign-in problems - staying signed in and idle sign-out.
- How to download files and folders from SharePoint - getting copies of files out of a library.
- SharePoint 'Access Denied' and 'You Need Permission': fixes - when the problem is permissions, not the drive.
- SharePoint 'locked for shared use': check out, check in and fixes - file locks when editing from Explorer.
- Recover SharePoint from ransomware - stopping sync, Restore this library, version history, the recycle bin and Microsoft Support's 14 days.
Mark Smith co-founded SmiKar Software in 2015 and has spent the past decade helping organisations solve Microsoft 365 data management challenges. He works with the SmiKar team to build solutions for SharePoint archiving, storage optimisation, governance and compliance, supporting customers from growing businesses through to Fortune 500 enterprises.
More about SmiKar


