Recently in a post, we saw how to map OneDrive as a Network Drive on Windows 10. Today we will show you how to easily map OneDrive for Business as a Network Drive using a tool called OneDriveMapper, which lets you create virtual drives for local as well as cloud directories. This PowerShell script lets you map a network drive to your OneDrive for Business account. Mapping OneDrive for Business is comparatively a difficult task and may require you to go through some advanced steps.
Map OneDrive for Business as a Network Drive
You might wonder why is even there a need to map OneDrive as a network drive when you can sync it instead. There are a lot of scenarios where synchronization cannot do any good. Like for a multi-user environment, a user may have to sync and re-sync the folders again to obtain the latest file. Whereas in a mapping scenario, you are accessing the file directly from its server. For sure, a mapped drive requires a more stable internet connection, but it is definitely worth it.
Although OneDrive for Business client is available to download, it will only sync your files. But you might want to map it as a network drive. So, check out this wonderful PowerShell script written by Jos Lieben.
OneDriveMapper PowerShell Script
OneDriveMapper is available as a PowerShell script that can automate the entire process of mapping OneDrive for Business as a network drive. The script has evolved over the versions and acquired a lot of useful features.
To get started, you need to follow the Developer’s instructions to change a few values in the script. Once you’ve modified your entries, you can run the script to map your OneDrive for Business as a network drive.
The script can run at login on or demand and connect seamlessly without any user interaction at all. Also, you need to enter your password only once, and you will be automatically logged in every time. While you can customize the drive letter, the drive label is also customizable. There are a lot of other useful features available.
- Detects changed usernames/URL’s automatically
- Can map drives inside Azure RemoteApps
- Can redirect My Documents to Onedrive for Business
- SSO for MDM Intune AzureAD W10 devices
- No Sync, online WebDav connection
- Connects seamlessly without user interaction
- Prompts for user password if no ADFS used
- Runs at login or on demand
- Maps your OneDrive for Business to a local drive letter
- On-Demand Provisioning of the OneDrive MySite
- Detailed and configurable logging
- Also maps Sharepoint Document libraries directly
- Can also map based on security groups
- Automatically disables and re-enables Protected Mode in IE
- Sets a customizable label for the Network drives
- Can use custom library names
- Can also run on non domain joined machines or Workplace-joined machines
- Can be deployed as logon script through Intune
- Can easily run from a shortcut as well.
The main question remains, how to configure the script for your OneDrive for Business account. The script’s web page covers all the steps required to setup and run the script. There are some parameters which need to be changed with your values. Once you are done with them, you are good to go and execute the script on your computer.
You can download the OneDriveMapper PowerShell script from TechNet.
Set up sync for OneDrive for Business
We’ve covered the steps required to map OneDrive for Business as a network drive and setup a synchronization setup just in case. Windows 10 comes preloaded with OneDrive client, so to set up sync for OneDrive for Business, all you need to do is log in with your business account on the desktop client. If you’ve already logged into OneDrive with your personal account then follow these steps:
- Right click the OneDrive icon from the system tray and select ‘Settings’.
- Click on ‘Add an account’.
- A familiar sign-in screen would pop up, and you can log in with your business account.
We hope this post will help you successfully map OneDrive for Business as a Network Drive on Windows 10.
TIP: Visual Subst is a free tool that lets you easily create Virtual Drives for your Folders & map Cloud Storage as Virtual Drives.