How to Map SharePoint as a Network Drive: 3 Methods for 2026
To map SharePoint Online as a network drive on Windows, use OneDrive sync (recommended) or WebDAV. Microsoft no longer recommends the legacy WebDAV method due to authentication issues. OneDrive sync provides better performance, offline access, and automatic conflict resolution. This guide covers all three methods with step-by-step instructions, PowerShell scripts, and enterprise deployment strategies.
Errin O'Connor
CEO & Chief AI Architect at EPC Group. 25+ years Microsoft ecosystem consulting. Bestselling Microsoft Press author. Led 5,200+ SharePoint deployments across Fortune 500 and government organizations.
Quick Answer
The fastest way to map SharePoint as a network drive is to open the SharePoint document library in your browser, click the Sync button in the toolbar, and let OneDrive sync create a local folder in File Explorer. This gives you a drive-like experience with offline access, automatic sync, and no authentication timeouts. For legacy drive-letter mapping, use WebDAV with the URL format https://yourtenant.sharepoint.com/sites/sitename/Shared%20Documents.
Method 1: OneDrive Sync (Recommended)
OneDrive sync is the Microsoft-recommended approach for accessing SharePoint document libraries from File Explorer. It provides real-time synchronization, offline file access, and eliminates the authentication issues that plague WebDAV connections. OneDrive sync uses modern authentication (OAuth 2.0), supports files up to 250GB, and handles conflict resolution automatically.
Step 1: Verify OneDrive Is Installed
OneDrive comes pre-installed on Windows 10 and Windows 11. Look for the OneDrive cloud icon in your system tray (bottom-right corner). If missing, download it from onedrive.com or install via Microsoft 365 Apps. Ensure you are running version 23.0 or later for full SharePoint sync support.
Step 2: Sign In with Your Work Account
Click the OneDrive icon in the system tray and sign in with your Microsoft 365 work or school account. If your organization uses single sign-on (SSO), OneDrive may authenticate automatically. Confirm you see your organization name under the OneDrive settings > Account tab.
Step 3: Navigate to the SharePoint Library
Open your web browser and go to the SharePoint Online site containing the document library you want to sync. Navigate to the specific document library (for example, "Shared Documents" or a custom library). You can find your SharePoint sites at https://yourtenant.sharepoint.com.
Step 4: Click the Sync Button
In the SharePoint document library toolbar, click the Sync button. Your browser will prompt you to open the OneDrive application. Click "Open" to allow it. OneDrive will begin syncing the library to a local folder on your computer. You will see a confirmation notification when sync is established.
Step 5: Access Files in File Explorer
Open File Explorer. Under your organization name in the left navigation pane, you will see the synced SharePoint library. Files display green checkmarks (synced), blue cloud icons (online-only), or sync-in-progress indicators. Right-click any file to choose "Always keep on this device" for offline access.
Pro Tip: Files On-Demand
Enable Files On-Demand in OneDrive Settings > Sync and backup to save disk space. Online-only files appear in File Explorer but only download when you open them. This is critical for large SharePoint libraries with thousands of files.
Method 2: WebDAV Drive Mapping
WebDAV (Web Distributed Authoring and Versioning) allows you to assign a traditional drive letter (like Z:) to a SharePoint document library. While this method is familiar to users transitioning from on-premises file shares, Microsoft no longer recommends it for SharePoint Online due to frequent authentication failures, slow performance over high-latency connections, and a default 50MB file size limit.
Important: WebDAV Limitations
WebDAV connections to SharePoint Online require the WebClient service running on Windows, do not work natively on macOS, have a default 50MB file size limit, and may disconnect when authentication tokens expire. Use this method only if OneDrive sync is not an option in your environment.
Step 1: Start the WebClient Service
Open the Windows Services console (services.msc) and ensure the WebClient service is running. Set it to "Automatic" startup type. Without this service, Windows cannot establish WebDAV connections. On Windows Server, the WebClient service is not installed by default — you must add the "Desktop Experience" feature.
Step 2: Authenticate to SharePoint Online
Open your web browser and log in to your SharePoint Online site (https://yourtenant.sharepoint.com). Ensure you can access the document library. This step creates an authentication cookie that WebDAV uses. Keep the browser open during the mapping process. If your organization uses MFA, complete the multi-factor authentication challenge.
Step 3: Open Map Network Drive
Open File Explorer, right-click "This PC" in the left pane, and select Map network drive. Choose a drive letter (e.g., Z:). If you do not see "Map network drive," click the three-dot menu (...) in the File Explorer toolbar on Windows 11.
Step 4: Enter the SharePoint URL
In the Folder field, enter the SharePoint document library URL in this exact format:
https://yourtenant.sharepoint.com/sites/YourSiteName/Shared%20DocumentsReplace yourtenant with your Microsoft 365 tenant name and YourSiteName with the site URL. For custom libraries, replace "Shared%20Documents" with the library's URL-encoded name. Check the "Connect using different credentials" checkbox.
Step 5: Enter Credentials
When prompted, enter your Microsoft 365 email address and password. Use the format user@yourtenant.onmicrosoft.com or your custom domain email. If your organization requires MFA, you may need to use an app password or ensure your browser session is still active from Step 2.
Step 6: Verify the Mapped Drive
After successful connection, the drive letter appears under "This PC" in File Explorer. Test by creating a folder or uploading a small file. Verify the change appears in the SharePoint web interface. Note that large file operations may be significantly slower than OneDrive sync.
Method 3: PowerShell Script for Drive Mapping
For IT administrators deploying drive mappings at scale, PowerShell provides scriptable automation. The net use command and New-PSDrive cmdlet can map SharePoint libraries programmatically. This method is useful for login scripts, Intune remediation scripts, or scheduled tasks.
Basic net use Command
Map a SharePoint library to drive letter S: using the Windows net use command:
# Map SharePoint document library to S: drive
net use S: "\\yourtenant.sharepoint.com@SSL\DavWwwRoot\sites\YourSiteName\Shared Documents" /persistent:yes
# Verify the mapping
net use S:PowerShell Script with Error Handling
A production-ready script that maps the drive, handles errors, and ensures the WebClient service is running:
# SharePoint Drive Mapping Script
# Requires: WebClient service, authenticated browser session
$driveLetter = "S:"
$sharePointUrl = "\\yourtenant.sharepoint.com@SSL\DavWwwRoot\sites\YourSiteName\Shared Documents"
# Ensure WebClient service is running
$webClient = Get-Service -Name WebClient
if ($webClient.Status -ne "Running") {
Start-Service -Name WebClient
Write-Host "Started WebClient service"
}
# Remove existing mapping if present
if (Test-Path $driveLetter) {
net use $driveLetter /delete /yes
Write-Host "Removed existing drive mapping"
}
# Create the drive mapping
try {
net use $driveLetter $sharePointUrl /persistent:yes
Write-Host "Successfully mapped $driveLetter to SharePoint"
} catch {
Write-Error "Failed to map drive: $_"
Write-Host "Ensure you are authenticated to SharePoint in your browser"
}Increase WebDAV File Size Limit via Registry
The default 50MB limit can be increased to 4GB with this registry modification:
# Increase WebDAV file size limit to 4GB (requires admin)
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\WebClient\Parameters" `
-Name "FileSizeLimitInBytes" -Value 4294967295
# Restart WebClient service to apply
Restart-Service -Name WebClient -Force
Write-Host "WebDAV file size limit increased to 4GB"Why Microsoft Recommends OneDrive Sync Over WebDAV
Microsoft officially recommends OneDrive sync for accessing SharePoint files from File Explorer. The comparison below shows why OneDrive sync outperforms WebDAV in every enterprise-relevant category.
| Feature | OneDrive Sync | WebDAV Mapping |
|---|---|---|
| Authentication | Modern auth (OAuth 2.0), SSO, MFA | Cookie-based, frequent token expiry |
| Offline Access | Full offline support with auto-sync | No offline access |
| Max File Size | 250GB | 50MB default (4GB with registry edit) |
| Performance | Background sync, differential uploads | Real-time over HTTPS, latency-sensitive |
| Conflict Resolution | Automatic with user notification | Last-write-wins, data loss risk |
| Files On-Demand | Yes, saves disk space | No, all files consume local space |
| macOS Support | Full support via OneDrive app | Not supported |
| Enterprise Management | Intune, GPO, ADMX templates | GPO only, limited controls |
| Connection Stability | Persistent, auto-reconnect | Drops frequently, manual reconnection |
| Microsoft Recommendation | Recommended | Legacy / Not Recommended |
Troubleshooting Common Issues
Authentication Errors
The most common WebDAV issue is authentication failure. SharePoint Online requires modern authentication, and WebDAV relies on a browser cookie to establish the connection.
- "The network path was not found" — Verify the WebClient service is running. Open an elevated command prompt and run
net start WebClient. Ensure the URL format is correct with@SSLin the UNC path. - "Access denied" or "403 Forbidden" — Log in to SharePoint in your browser first, then retry the drive mapping. Confirm your account has at least Read permissions on the document library.
- "The specified network password is not correct" — Clear cached credentials in Windows Credential Manager (
Control Panel > Credential Manager > Windows Credentials). Remove any entries forsharepoint.comand retry. - MFA blocking WebDAV — WebDAV does not support interactive MFA prompts. You must complete MFA in the browser first. Consider creating a Conditional Access policy that exempts the WebClient user agent if WebDAV is required organization-wide.
Disconnected Drives
WebDAV-mapped drives frequently show a red X (disconnected) after sleep, restart, or token expiration.
- After sleep or hibernate — The authentication token expires during sleep. Open the SharePoint site in your browser to re-authenticate, then double-click the drive to reconnect.
- Red X on startup — WebDAV drives mapped with
/persistent:yesattempt to reconnect at login but fail if the WebClient service starts too slowly. Add a login script that starts WebClient before the drive mapping. - Intermittent disconnections — Increase the
ServerNotFoundCacheLifeTimeinSecregistry value from 30 to 0 atHKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters. This prevents Windows from caching failed connection attempts.
Slow Performance
WebDAV transfers files synchronously over HTTPS, making it noticeably slower than OneDrive sync for large files or bulk operations.
- Slow file browsing — WebDAV queries the server for each folder listing. Reduce the number of files per folder (under 5,000) or switch to OneDrive sync with Files On-Demand.
- Large file transfers timing out — Increase the
SendTimeoutandReceiveTimeoutregistry values atHKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters. Set both to0x000493E0(300000 milliseconds / 5 minutes). - OneDrive sync stuck — Right-click the OneDrive icon, select "Pause syncing," wait 30 seconds, then resume. If stuck on a specific file, check for file name or path length issues (max 400 characters total path).
Enterprise Considerations
Group Policy Deployment
For organizations managing hundreds or thousands of devices, manual drive mapping is impractical. Use Group Policy or Intune to automate SharePoint access across your environment.
- OneDrive ADMX Templates — Download the OneDrive Group Policy templates from Microsoft. Key policies include "Silently sign in users to the OneDrive sync app" (prevents user prompts), "Configure team site libraries to sync automatically" (auto-syncs specific SharePoint libraries), and "Use Files On-Demand" (saves disk space).
- GPO Drive Mapping — Use Group Policy Preferences > Drive Maps to create WebDAV mappings. Target by security group to limit mappings to specific departments. Use item-level targeting to filter by OS version or OU.
- Login Scripts — Deploy PowerShell login scripts via GPO that start the WebClient service and execute
net usecommands. Include error handling and logging for troubleshooting.
Microsoft Intune Policies
For modern device management without on-premises Active Directory, Intune provides cloud-native configuration for OneDrive and SharePoint access.
- OneDrive Configuration Profiles — Create an Intune configuration profile using the Settings Catalog. Search for "OneDrive" and configure: silent sign-in, auto-sync libraries by tenant ID and library ID, Files On-Demand, and Known Folder Move.
- Known Folder Move (KFM) — Redirect Desktop, Documents, and Pictures folders from local storage to OneDrive. This ensures all user files are automatically backed up to the cloud without requiring users to change their workflow.
- Remediation Scripts — Use Intune proactive remediation scripts to detect and fix broken drive mappings. A detection script checks for the mapped drive; a remediation script re-creates it if missing.
Security and Compliance
Enterprise SharePoint deployments must consider data protection, DLP, and conditional access when enabling drive mapping.
- Conditional Access — Configure Microsoft Entra Conditional Access policies to restrict OneDrive sync to compliant, domain-joined, or managed devices only. This prevents data leakage to personal devices.
- Data Loss Prevention (DLP) — OneDrive sync respects Microsoft Purview DLP policies. Sensitive files tagged with sensitivity labels can be blocked from syncing to non-compliant devices. WebDAV does not support DLP enforcement.
- Audit Logging — OneDrive sync activities appear in the Microsoft 365 Unified Audit Log. WebDAV access is harder to track. For HIPAA-compliant environments, OneDrive sync provides the audit trail required by regulators.
Need Help with SharePoint Drive Mapping at Scale?
EPC Group has deployed OneDrive sync and SharePoint access solutions for organizations with 10,000+ users. Our SharePoint consulting team handles GPO configuration, Intune policy deployment, and SharePoint migration services including legacy mapped drive transitions. As a Microsoft ecosystem firm with 25+ years of experience, we ensure your deployment is secure, compliant, and maintainable.
Frequently Asked Questions
Can you map SharePoint Online as a network drive in Windows?
Yes. The recommended method is OneDrive sync, which maps SharePoint document libraries to File Explorer automatically. You can also use WebDAV mapping or PowerShell scripts, though Microsoft recommends OneDrive sync for reliability and performance. WebDAV connections frequently drop and have a 50MB file size limit.
Why does my mapped SharePoint drive keep disconnecting?
WebDAV-mapped SharePoint drives disconnect due to authentication token expiration (typically every 30-60 minutes), network timeouts, or Windows credential manager conflicts. Switch to OneDrive sync to eliminate disconnection issues entirely. If you must use WebDAV, increase the timeout value in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\ServerNotFoundCacheLifeTimeinSec.
What is the maximum file size for WebDAV SharePoint mapping?
The default WebDAV file size limit is 50MB. You can increase it by modifying the FileSizeLimitInBytes registry value at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters. Set it to 4294967295 (4GB) for maximum capacity. After changing, restart the WebClient service. OneDrive sync has no practical file size limit for SharePoint files.
How do I map SharePoint as a drive letter using Group Policy?
Use Group Policy Preferences (GPP) to create a mapped drive item. Set the action to Create, assign a drive letter, and use the WebDAV URL format: \\yourtenant.sharepoint.com@SSL\DavWwwRoot\sites\sitename\Shared Documents. For modern environments, Microsoft recommends using Intune with the OneDrive Known Folder Move policy instead of GPO-based WebDAV mapping.
Does OneDrive sync work with SharePoint document libraries?
Yes. OneDrive sync client (OneDrive for Business) can sync any SharePoint Online document library. Click the Sync button in the SharePoint library toolbar, and OneDrive creates a local folder in File Explorer. Files sync automatically, work offline, and show real-time sync status. IT admins can configure this via Intune or Group Policy for all users.
Can I map SharePoint as a network drive on macOS?
OneDrive sync is the only reliable method on macOS. WebDAV mapping is not supported for SharePoint Online on macOS due to authentication incompatibilities with modern auth (OAuth 2.0). Install the OneDrive app from the Mac App Store, sign in with your Microsoft 365 account, and click Sync on any SharePoint library to access it in Finder.