Mapping Sharepoint Document Library As Network Drive In

Posted on  by 

One Drive for Business sync. The functionality sounded great. Allow me and my team to efficiently access and collaborate on local files synced from centrally located SharePoint libraries? Off-line edits and additions magically syncing and merging with my teammates changes once I establish an internet connection? SharePoint power and security plus DropBox like sync? Sign me up.

Browse to the library that you want to map the drive for. Click the LIBRARY tab on the ribbon, and then click Open with Explorer. Click in an empty area of the Explorer window address bar, and then copy the URL of the library. Right-click Computer or This PC from the Desktop, or within Windows Explorer, and then click Map Network. 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. Assigning a SharePoint document library to a drive letter in File Explorer in Windows, will make it easier for users to access and work with shared documents on SharePoint. How to MAP a SharePoint Site as a Network Drive in File Explorer in Windows 10. Launch Internet Explorer.

When it works, it is fantastic. But, even if you adhere to all best practices, and give it the best possible chance to succeed, you will eventually run into sync issues. Which means stop syncing the library, delete cache, re-sync. And do it again when it next time it breaks.

To be fair, this is MUCH better than the old SharePoint sync mechanisms – SharePoint Workspace or Groove. And, I understand how difficult it is to reliably sync any data, much less documents that dozens of people may be collaborating on. I know Microsoft is working to improve it and they have shown they can make great progress when their energy is focused. Lets hope the complaints of thousands of people that just want it to “sync like Dropbox” are being heard by the people that can direct that focus.

Having said all of that, I will add that I love SharePoint and think it is underutilized by many Office 365 customers. We rely on it heavily at Clarus. We have excellent bandwidth at the office – it doesn’t make sense to sync copies of files to all of our desktops. But using a browser as the sole vehicle for accessing files doesn’t work for me. So, we map drives to libraries. This gives us the look and feel of regular local files and the ability to move files around that is not possible now via a web browser. We still have simultaneous, multi-user edit capabilities for supported file types, but no sync headaches.

It is possible to map a drive to SharePoint or OneDrive for Business and maintain the connection through reboots. With one caveat (of course there is) – you need to log in to SharePoint and browse to one of your mapped libraries when you reboot. And…you should do this with Internet Explorer (IE). The purpose of this is to keep the security token for SharePoint active.
**Technically we are “Adding a network location” but start the same way we would map a drive. This functionality relies on WebDAV and the Webclient service.

So, to do this, you need to know the path you will use for the mapped drive/network location.

Getting the path for a SharePont Library
Use IE to browse to the SharePoint library you want to map a drive to. The URL in your browser will not work for our mapped drive – we need to know the true path. To get this, click on the Library tab, then click the “Open in Explorer” button. Again use IE – Open in Explorer does not work in Chrome.

Windows Explorer should open and you should see the contents of your Library. That is the path we want. Copy that into the clipboard.

Getting the path for your personal One Drive for Business
***One Drive for Business is a little different. You Cannot “Open in Explorer”. But, unlike a regular SharePoint Library, you can make out the necessary path easily enough. For a One Drive for Business path, navigate to One Drive for Business and click Files. Copy everything prior to “/_layouts/” from the address bar.

Then, bring up the Map Network Drive dialog (right click This PC / My Computer and choose “Map Network Drive”). Do not use this first screen for mapping your library. This mechanism will not survive reboots without some serious gymnastics you do not want to deal with. Click the “Connect to a Web Site…” link (highlighted below).

The Add Network Location Wizard appears. Click Next.

Select “Choose a custom network location” and click Next.

Paste your Library or One Drive for Business path that you copied earlier into the address field.

Mapping Sharepoint Document Library As Network Drive In Outlook

Give it a name, then Click Next, Next, Finish.

And there you go, a mapped SharePoint Library that will survive reboots.

Mapping

Just remember to log into SharePoint using IE from time to time and the necessary security tokens will be present to maintain the connection.

If you browse to one of your mapped folders and you receive an error message, chances are you either do not have an internet connection, or the security token has expired due to an extended period of time without touching SharePoint (logging into SharePoint via IE and minimizing it counts as a touch). Simply log into SharePoint, browse to any library and “Open in Explorer”. All your mapped libraries will be accessible again. I have gone months without needing to do this.

This is ideal if you are desktop user with solid internet connectivity and bandwidth. Keep in mind, if opening a 10 MB file, it is going to open as fast as your down speeds will allow. With fast internet being ubiquitous and much cheaper these days, this is a viable option for many businesses and home office based users.

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

Mapping Sharepoint Document Library As Network Drive In

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.

Schwinn serial number lookup tool. 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

Mapping sharepoint document library as network drive in windows 10

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.

Known errors:

Mapping Sharepoint Document Library As Network Drive In Linux

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

Coments are closed