Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Map OneDrive for Business to a Drive Letter in Windows

December 4, 2022
in Blog, OneDrive
2
ADVERTISEMENT

Table of Contents

With the introduction of Windows 11, OneDrive has become a more permanent part of the OS, where the OneDrive files are shown directly in the Start Menu. But, Microsoft has pushed a recent update for Windows that makes it harder to map OneDrive to a particular drive letter on your system. Don’t worry. There are multiple ways that you can still use to map the OneDrive to a designated drive letter on your system.

Map OneDrive for Business to a drive letter in Windows

Method 1: Map OneDrive for Business as a local drive

1. Determining the path of the OneDrive for Business. Hold the key while right click on the OneDrive icon to bring up the context menu then elect Copy as path.

In this case, below is the location of my OneDrive for Business folder.

"C:\Users\admin\OneDrive - Bon Ben"

2. Once you are done, let’s open a Command Prompt or PowerShell window then execute the following command:

Note Note: Do not open Command Prompt or PowerShell as administrator. Let's open CMD or PowerShell as normal user.

Don’t forget replacing the drive letter with the drive letter you want to assign to the newly mapped OneDrive for Business. Remember to put the address of the folder between the quotation marks in the command.

subst P: "C:\Users\admin\OneDrive - Bon Ben"

That’s it! Now, you can close the Command Prompt and check the File Explorer. You will see the OneDrive has appeared as the P drive on your system.

Method 2: Map OneDrive for Business as a network drive

If the above method doesn’t work, you can add OneDrive for Business as a network drive on your system. It will work as well.

Note Note: This feature doesn’t work in Google Chrome, Mozilla Firefox, or on the Mac platform. You must use Internet Explorer to login and map a network drive.

1. Open Microsoft Edge then sign-in into https://onedrive.com.

2. Sign in with your email address and password. Once you have logged in, go to the address bar and copy the address up to the forward slash after your_domain_name/.

You should have copied something like this (but with your ID): 

https://bbguides-my.sharepoint.com/personal/tonny_bonben_me/

3. Next, you need add credential into Internet Explorer. To do it, let’s right click on the Windows Start icon then select Windows PowerShell (Admin).

4. Copy and run the commands below to login into OneDrive for Business using Internet Explorer browser. Don’t forget change the $Path by your OneDrive for Business link.

$Path = "https://bbguides-my.sharepoint.com/personal/tonny_bonben_me/"
Start-Process -File "C:\Program Files\Internet Explorer\iexplore.exe" -arg $Path

###Add trusted site into Internet Options
Set-Location "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
Set-Location ZoneMap\Domains
New-Item *.sharepoint.com
Set-Location *.sharepoint.com
New-ItemProperty . -Name https -Value 2 -Type DWORD

5. Sign in with your email address and password. Then don’t forget check the box that says, Don’t show this again and click Yes button in the Stay signed in window.

6. One done, you would get this screen, just simple close Internet Explorer. We don’t need it anymore.

7. Open the File Explorer on your system. In the File Explorer window, click on Map network drive to map OneDrive into your Windows.

8. In the folder box, paste the URL from your clipboard, and adding the word Documents/ to the end.

https://bbguides-my.sharepoint.com/personal/tonny_bonben_me/Documents/

9. OneDrive will be opened in a new File Explorer window. You have successfully mapped OneDrive for Business as a drive on your system.

10. As you have added OneDrive as a new network drive. You can rename it to anything you prefer.

ADVERTISEMENT
5/5 - (1 vote)
Previous Post

How to Map OneDrive to a Drive Letter in Windows 10/ 11

Next Post

How to Open a Document Library in File Explorer in SharePoint Online

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Comments 2

  1. Alex says:
    2 years ago

    This is super useful! Thank you very much for the effort you put in those documents.

    Reply
  2. Anonymous says:
    1 year ago

    Bonjour et j’ai bien réussi à rajouter ce lecteur disque en fait il se calque avec le lecteur C: avec la même dimension le meme espace donc il stock sur C: d’abord et non pas sur le cloud OneDrive BUSINESS, j’aimerais savoir comment on peut-on le supprimer parce que je n’arrive plus à le supprimer comment peut-on faire

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory