A profile picture of Josh Heng

Josh
Heng

Featured image of Mapping OneDrive for Business in File Explorer

Mapping OneDrive for Business in File Explorer

Written by Josh Heng on
InstructionsOneDrive

In this post, I will explain how to map a OneDrive for Business account as a network drive in Windows 10. This method should also work for organisations where the standard OneDrive for Business syncing is disabled as it uses a different protocol.

For this to work, you must use Internet Explorer and not any other browser. If you cannot find Internet Explorer on your system, enable it by reversing the steps from this blog post

Adding a Trusted Site

First, you will need to add Sharepoint as a trusted site. To do this, go to Internet Explorer and press ALT+T then go to Internet Options.

A screenshot of opening the Internet options menu
Go to the Security tab and click on Sites, then Trusted sites. Add https://*.sharepoint.com to the list.

Logging into Onedrive for Business

Go to login.microsoftonline.com on Internet Explorer and log into your account as normal, making sure to tick the 'Stay Signed In' box.

Then, click the view button on the right side of the ribbon and click View in File Explorer to open it in on your computer. Make sure to allow all popups if prompted.

A screenshot of opening the OneDrive folder in file explorer

Mapping the Drive

Right click the address bar in File Explorer and click Copy address as text. Then go to 'This PC' and click the Map network drive button in the Computer ribbon.

A screenshot of copying the folder address as text
A screenshot of opening the map network drive menu
Choose any free drive letter and paste the folder path in the folder box. It should look something like https://[organisation]-my.sharepoint.com/personal/[username]/Documents. Then click Finish, and hopefully the drive should appear as a network location
A screenshot of mapping the folder

Removing the Drive

To remove the mapped drive just right click it and select Disconnect.

A screenshot of removing the drive
If that doesn't work, open command prompt by pressing WINDOWS+R and typing cmd. Then run net use * /delete to delete all drives, or net use O: delete (with the correct drive letter) to delete a certain drive.
A screenshot of removing the drive with command prompt