Map Sharepoint Document Library As Network Drive

  1. Oct 24, 2019 Ok, but the mapping doesn't works at all. The problem with the user have to re-login isn't a major problem actually. I wonder if I did the GPO right, I couldn't find anything on google how to do it. I did 'User Configuration Preferences Windows Settings Drive Maps New' and put the address of the sharepoint library.
  2. 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. The OneDrive sync client provides Files On-Demand, which allows you to access all your files in OneDrive without using local storage space. Troubleshoot mapped network drive error messages.
  3. There are good reasons to map SharePoint as a network drive. So I’ve taken a bit of heat from some of my fellow SharePoint geeks over a recent post on how to map a SharePoint library (or site.

Disclaimer: This is not an ideal method of using SharePoint online. Using SharePoint may be a big change, and even shocking to some people who have been using a network file share for a long time, I would advised that you should really use SharePoint through its intended mediums so you can get the most out of all of its features. Using SharePoint as a “Mapped drive File Share” has many limitations and a less than stellar user experience. Some of these unsupported items / limitations are:

  1. Document versioning is not supported.
  2. More than 5000 items in any given folder is not supported.
  3. Limited SharePoint Search.
  4. Deep folder hierarchy is not supported due to URL length limits.
  5. Metadata is not supported.
    As nostalgic as having a “S Drive” in your windows explorer may be, if you are someone who was using a computer since before 2015 and you are now using Windows 10, you can use SharePoint without mapping it as a Drive. It might be a little more slow going at first, but I promise, you will gain multiple times more productivity than you had with your trusty ole “S drive” when you start to use SharePoint as SharePoint and not a “File Share.”

Based on my test as a workaround you first use OneDrive sync client to sync to sync your SharePoint online document library to local computer, then share your local sync library to network drive via right- click on sync library on your pc Give access to specific people, and select Everyone. But, If users want also co-authoring, you can Azure.

Introduction

If you are still reading, you probably have that one user who just wants to collaborate like the last 20 years. Or maybe you are that user. If so, here you go!
****IMPORTANT**** One of the most important things to note is that in order to use a mapped drive, any steps that require a browser MUST be done in Internet Explorer. Explorer view and mapped SharePoint drives ARE not supported in ANY other browser.

************** SECURITY WARNING ************
DO NOT, for any reason, under any circumstances, map a network drive on a public PC, or a PC that you are sharing with someone who wouldn’t otherwise have access to your SharePoint documents. You are caching your login credentials and leaving the browser logged in.

Prepare the PC

Before you can actually map the drive, there are some setting that you need to change on your PC to be able to map a drive to SharePoint online.

IE Trusted Sites

First, we need to make sure that the SharePoint Online and a few other Microsoft URL’s have been added to your Trusted sites zone in Internet Explorer and that the Trusted Sites zone is set to the lowest level. To do this, follow these steps:

  • Open Internet Explorer.
  • Click the settings gear icon, and then click Internet options.
  • On the Internet Options dialog box
  • Click the General tab (if it didn’t open to it for some reason)
  • Make sure that the “Delete browsing history on exit” check box is UNCHECKED. (click Apply) if you made a change
  • Click the Settings box in the Browsing History section
  • In the dialog box that pops up click the History tab
  • Make sure that the “Days to keep pages in history” is set to at least 20 and then click OK to return to the Internet Settings.
  • Click the Security tab
  • Click the Trusted sites icon, and then click the Sites option.
  • Uncheck the box “require server verification for (https: ) for all sites in this zone.
  • In the “Add this website to the zone” box, type *.sharepoint.com
  • Click the Add button.
  • Now do the same above step for each of the following items, replacing *.sharepoint.com with the item in the list.

*.live.com
*.microsoft.com
*.microsoftonline.com
*.office.com
*.office365.com
*.sharepoint.com
*.windows.net

  • After you have added each site to the Websites list, click Close.
  • Back on the main page, make sure the slider for “Security Level for this zone”, is set to LOW, and the checkbox for “Enable Protected Mode” is unchecked
  • Click Apply
  • Click the “Connections” tab
  • Click the Settings Option
  • If you see the “Use automatic configuration script” or “Use a proxy server…” check-boxes checked, STOP and talk with someone who is familiar with your network setup, making any settings changes with these configured will likely break something and render you unable to browse the internet.
  • Make sure that the “Automatically detect settings” box is UNCHECKED and then click OK.
  • Click OK again to exit the internet settings page
  • Close out of all Internet Explorer windows

Configure the WebClient Service

  • Press the Windows Key + R on your keyboard (Win+R) to bring up the RUN dialog box.
  • If there is anything in the RUN dialog go ahead and delete it, then type in services.msc and click OK.
  • In the list of services, locate the service named WebClient
  • Double click on the name WebClient to open the settings box
  • Make sure the dropdown next to “Startup Type” says “Automatic”
  • Click Apply if you made a change.
  • Make sure the the Service Status says “Running” If it does not, click the start button a wait a moment until it says running
  • Click OK to close the settings dialog box and you can also close out the services window.

Drive Mapping

Congratulations, you have made it this far. Time to ACTUALLY map the network drive to SharePoint online!!!!!!!!

  • Using Internet Explorer, login to your SharePoint site. Do not go on auto-pilot here and just start clicking, there is an important small step during the login process we must take.
  • While logging in, you will be presented with the following screen asking if you would like to Stay Signed in.. Click YES on this screen. It is advised NOT to click the “Don’t show this again” option.
  • In windows file explorer, find the icon that says “This PC” and right click on it and choose the “Map Network Drive” option.
  • In the drop-down for “Drive”, choose what drive letter you would like to use for this drive.
  • In the “Folder” box, you will want to input the SharePoint address to the document library that you want to map.
    • You can get this from your Internet Explorer address bar. It is the entire address before the first “/Forms/Allitems.aspx” part EXACTLY as it is displayed .
    • In the below example I have navigated with Internet Explorer to the “Accounting” document library inside of the Accounting Team SharePoint site.
      • If I wanted to map a drive to this folder, I would type “https://contoso.sharepoint.com/teams/Accounting%20Services/Client%20Documents” into the folder box. Well I would copy (Ctrl+C) and paste (Ctrl+V) it, but you can practice your typing skills if you would like to.
  • If you would like to map a drive to the Root of the SharePoint structure so you can see all your document libraries when you open the mapped drive, instead of mapping them individually, you would enter in “[email protected]DavWWWRoot” instead of the above URL to the document library. Replace contoso with your .SharePoint.com site.
  • Make sure that BOTH the “Reconnect at sign-in” and “Connect using different credentials” options are checked and click Finish.
  • When prompted to enter in your username and password, enter in your username and password that you use to login to the Office 365 portal, and check the box to remember your credentials before clicking OK.
  • Cross your fingers and if all goes well you should now have your mapped drive in your Windows File Explorer. If not, go through the first steps again.

Keep Mapped after Logoff / Reboot

You didn’t think you were going to get away that easy, did you? Anytime you log off your PC and then log back on (not lock and unlock), or reboot your PC you need to make sure that you open up Internet Explorer, navigate to your SharePoint site, and make sure that you are logged in so that your system re-authenticates your PC to SharePoint BEFORE you try clicking on the mapped drive or using it in any way. After you are logged into SharePoint you can close out Internet Explorer and start using the drive. If you don’t do this, your drive won’t work. Yes, even if you open Internet Explorer and you are already signed in, you still MUST navigate to this site so that the authentication token that is stored on your PC is updated.

YES, I’m for real. NO I’m not kidding.
Now before you panic TOO much, there is an easy way to do this so you don’t have to think about it too much by making it so Internet Explorer automatically starts and goes to your SharePoint address. To do this:

  • Press the Windows Key + R on your keyboard (Win+R) to bring up the RUN dialog box.
  • If there is anything in the RUN dialog go ahead and delete it, then type in shell:startup and click OK.
  • This will bring up a new file explorer window that is your users startup folder (shortcuts that will run when you login).
  • Right click in an empty space in the folder and go to NEW>Shortcut.
  • In the location of the item box, enter in the following based on if you have a 32 bit or 64 bit version of Windows 10 INCLUDING the quote marks (“) you see. If you aren’t sure, you probably have the 64 bit version. I suggest you copy and paste the below code and just change the “contoso” part of the URL to yours. It is all on a single line with only a single space after the last and before the https://
  • Click Next and give the shortcut a name, it doesn’t matter what, but I usually put SharePoint.
  • Click Finish.

Now when you first login to your PC, Internet Explorer will launch and navigate to your SharePoint site. All you need to do is make sure that you don’t need to sign in to see your SharePoint site in the browser and then you can close Internet Explorer and use your Firef…. errr I mean Microsoft Edge browser for everything else in your day.

Troubleshooting / Password Changes

Yes, the drive map WILL break at some point, and you will change your password to login to Office 365 (hopefully). Here are some steps to follow…

Changed Password

When you change your password, you will need to update your mapped drive to reflect this. To do this:

  • Locate your mapped drive in the Windows File Explorer
  • Right click and choose the disconnect option
  • Reboot your PC
  • Follow the steps outlined under “Drive Mapping” above to re-map your drive with your new password.

IT’S BROKEN!!!!!!!

You clicked on the mapped drive so you could get to a file and WHAM!!!!! Error message. Some common ones are:

  • 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’

Mapped drives will generally break anytime there is an important deadline you are trying to meet, right before an important meeting that you need to get a document for, or on a Friday at 4:45pm when you are trying to get out of the office. If this happens there are a few steps to take. This may not always work and you may need to call in an expert like us at LogicCloud IT; but 60% of the time it works every time…

Troubleshooting Stage 1

  1. Reboot your PC. NO, shutting down and then powering back on IS NOT the same thing as rebooting in Windows 10 land unless you have made some specific settings changes to modify the defaults. Click the start menu, click the power icon and choose REBOOT.
  2. After the reboot, before you touch anything, open Internet Explorer (if you don’t have it set to automatically open) and make sure you can navigate around inside your SharePoint online site without any errors.
  3. Open the Windows File Explorer and try accessing your Mapped Drive. If it has a red X on it that is totally meaningless when it comes to SharePoint mapped drives. The only way to know if it is actually working is to try to open the drive. Red X or not.

Troubleshooting Stage 2

If stage 1 didn’t fix the issue, all hope isn’t lost… yet…

Map sharepoint document library as network drive using
  1. Open Internet Explorer and navigate to your SharePoint site.
  2. In the top right hand corner click on the icon with your initials (or photo if you put one) and choose the option to sign out.
  3. Close Internet Explorer.
  4. Go back above to the “Prepare the PC” section of this document and make sure that all the settings are correct.
  5. REBOOT your PC.
  6. Open internet explorer (if it didn’t open automatically) and log in, making sure you say YES to the keeping you signed in option.

An occasional Microsoft windows update or even a third party plugin may have changed a setting. You may have also sneezed to closely to your PC… Windows doesn’t like that. Bad operator, you have made the hamster running the PC mad.

Troubleshooting Stage 3

If the above two troubleshooting stages didn’t work, we have reached DEFCON 3 and your boss is probably breathing down your neck. Try the following:

  1. Locate your mapped drive in the Windows File Explorer
  2. Right click and choose the disconnect option
  3. Reboot your PC
  4. Follow the steps outlined under “Drive Mapping” above to re-map your drive.

Troubleshooting Stage 4

Still not working??? Okay, Houston, we’ve had a problem here”

We’ve reached DEFCON 4

Time to call in the experts. Contact Us and we can assist you in figuring out what is wrong.

Visit our website to find out more useful solutions and services from Chiron Consulting https://chironusa.com/

There are always some concerns with OneDrive sync client, because

  • Sometimes it's unstable
  • Performance issues
  • It's just doesn't work for some scenarios
  • Users don't want to study a new way to access data

So the alternative solution might be to create a mapped drive from SharePoint document library

Here are the steps you should take to make a proper configurations

Start “Web-client” service

To be sure that mapped drives will reconnect automatically after user’s machine reboot “Web-client” service should be started on the user’s machine and start mode should be set to “Automatic

Login into SharePoint Online via Internet Explore

A user should log in into SharePoint online portal via Internet Explorer Browser.

IMPORTANT!
It’s important that user use exactly Internet Explorer Browser at this step.
And 'Stay Signed In' option should be enabled in the tenant. It's required to click 'Yes' when the prompt will appear.

Open SP library in explorer

To avoid any errors for a future it’s recommended that user open default SP online library with file explorer.

  • To do it user should navigate to a documents library on your tenant.
    For example: ‘your tenant URL is here’/Documents
    so it should look like this: https://tenant.sharepoint.com/Documents
  • If a user has “Modern Experience”
    • He should click on “All Documents” in the right corner
    • Click “View in File Explorer”
    • A new File explorer window will open
    • User can close the explorer window
  • If user has “Classic Experience”
    • He should click on “Library” tab in the top ribbon menu
    • And click “Open in Explorer” button
    • A new File explorer window will be opened
    • User can close the explorer window

Add site to trusted sites list

To avoid errors like “Access Denied” in the future you need to add your SP tenant to trusted sites inside Internet Explorer Browser.
This can be configured with GPO as well.

  • Login to your SharePoint environment
  • Go to IE browser settings --> Internet Options
  • Click on “Security” tab
  • Click on Trusted Sites icon --> Sites button
  • Add SP site address to the Trusted sites
  • Click Ok

Connect drives via “net use” statement

Net use statement should be used to connect drives from SharePoint.
.bat file can be used for this purpose as well.

Command should be executed via Command Prompt and looks like this:

It will map this document library to users machine: https://bainbridgere.sharepoint.com/sites/SharePoint/Finance/Projects

IMPORTANT! The command is case-sensitive, so be sure to double-check the path you enter.

Check if drives working

After all, drives have been mapped it’s a good idea to reboot a machine and check if drives connected after reboot automatically.

Map Sharepoint Document Library As Network Drive For Mac

Known errors:

Map Sharepoint Document Library As Network Driver

  • Error 53, path wasn’t found
    To fix this error double check the URL you are entering
    and be sure that you executed steps described in “Open SP library in explorer” paragraph.
  • Error 224, Access denied
    To fix this error you need to be sure that user has access to the site where SP library located. It’s a good idea to open the library you are trying to connect from Internet Explorer and check if a user has access to it.
    Also, be sure that you executed steps described in “Add site to trusted in IE” paragraph.
  • Other errors
    If you faced any other error you can check your Antivirus software settings to be sure it’s not blocking a connection
    and check Firewall settings. It’s recommended to turn off the Firewall.