Connect to Sharepoint Online usin CMD/'net use'/'Add a network location' (without Internet explorer)

%3CLINGO-SUB%20id%3D%22lingo-sub-154765%22%20slang%3D%22en-US%22%3EConnect%20to%20Sharepoint%20Online%20usin%20CMD%2F'net%20use'%2F'Add%20a%20network%20location'%20(without%20Internet%20explorer)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154765%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20like%20to%20be%20able%20to%20add%20Sharepoint%20Online%20(SPO)%20locations%20to%20my%20computer%20and%20users's%20computers%20by%20simply%20using%20the%20'net%20use'%20command%20in%20command%20prompt%20or%20'Add%20a%20network%20location'%20in%20Windows%20Explorer%20without%20having%20to%20go%20on%20Internet%20Explorer%20(IE).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHow%20can%20this%20be%20done%3F%3C%2FSTRONG%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20understand%20that%20they'll%20have%20to%20enter%20their%20username%20and%20password%20in%20a%20'Windows%20Security'%20prompt%2C%20like%20below%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20463px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F28318iBAA91AC0F80AC217%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22enter-network-password%22%20title%3D%22enter-network-password%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1620695686%22%20id%3D%22toc-hId-1788894711%22%20id%3D%22toc-hId-1788894711%22%20id%3D%22toc-hId-1788894711%22%3E%3CSTRONG%3ENotes%3A%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CH3%20id%3D%22toc-hId--1127974780%22%20id%3D%22toc-hId--959775755%22%20id%3D%22toc-hId--959775755%22%20id%3D%22toc-hId--959775755%22%3E%3CSTRONG%3ECannot%20use%20IE%20as%3A%3C%2FSTRONG%3E%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-gb%2Fwindowsforbusiness%2Fend-of-ie-support%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EInternet%20Explorer%20is%20no%20longer%20supported%3C%2FA%3E%26nbsp%3Band%20has%20issues%20with%20crashing.%3C%2FLI%3E%0A%3CLI%3ENeed%20to%20add%20multiple%20network%20locations%20in%20different%20SPO%20tenants.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH3%20id%3D%22toc-hId-614835555%22%20id%3D%22toc-hId-783034580%22%20id%3D%22toc-hId-783034580%22%20id%3D%22toc-hId-783034580%22%3EWant%20to%20use%20CMD%2F'net%20use'%2F%3CSPAN%3E'Add%20a%20network%20location'%20as%3A%3C%2FSPAN%3E%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3E%3CSPAN%3Eit%20is%20easier%20for%20the%20users%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3ECan%20give%20them%20a%20batch%20file%20(.bat)%20or%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Eask%20them%20to%20follow%20GUI%20prompts%20in%20Windows%20explorer.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-154765%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWebDAV%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-278352%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20to%20Sharepoint%20Online%20usin%20CMD%2F'net%20use'%2F'Add%20a%20network%20location'%20(without%20Internet%20explo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-278352%22%20slang%3D%22en-US%22%3E%3CP%3EAny%20update%20on%20this%3F%20Having%20the%20same%20problem...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-160752%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20to%20Sharepoint%20Online%20usin%20CMD%2F'net%20use'%2F'Add%20a%20network%20location'%20(without%20Internet%20explo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-160752%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20reply.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20seen%20that%20support%20article%20before.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20issue%20is%20that%20it%20requires%20the%20user%20to%20be%20logged%20into%20Internet%20Explorer%20first.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20like%20to%20know%20if%20there%20are%20any%20options%20to%20allow%20the%20user%20to%20login%20using%20WebDAV%20or%26nbsp%3B'Add%20a%20network%20location'%20in%20Windows%20or%20Mac%2C%20without%20using%20Internet%20Explorer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20the%20sync%20client%20to%20sync%20various%20locations%20on%20SPO%20with%20different%20logins%20is%20a%20bit%20of%20an%20issue.%20Where%20as%2C%26nbsp%3B%3CSPAN%3E'Add%20a%20network%20location'%20is%20a%20quick%20and%20easy%20way%20of%20browsing%20SPO%20items%20and%20disconnecting%20when%20done.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-154928%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20to%20Sharepoint%20Online%20usin%20CMD%2F'net%20use'%2F'Add%20a%20network%20location'%20(without%20Internet%20explo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-154928%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20of%20the%20primary%20issues%20with%20Mapped%20drives%20and%20SP%20Online%20is%20that%20with%20a%20SharePoint%20Online%20mapped%20drive%20on%20Windows%207%2C%20the%20mapped%20drive%20%3CSTRONG%3Ewill%20not%3C%2FSTRONG%3E%20stay%20connected%20if%20the%20computer%20is%20restarted%20or%20you%20sign%20out.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20above%20is%20from%20%3CA%20href%3D%22https%3A%2F%2Fna01.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Furldefense.proofpoint.com%252Fv2%252Furl%253Fu%253Dhttps-3A__support.microsoft.com_en-2Dus_help_2616712_how-2Dto-2Dconfigure-2Dand-2Dto-2Dtroubleshoot-2Dmapped-2Dnetwork-2Ddrives-2Dthat-2Dconnec%2526d%253DDwMFAg%2526c%253D2Nw3fMGo2X8W9N0cgJ8QEE6dJUdSW43Zo0sycqQq3H0%2526r%253DX7qbungo8O4U9ltgEISfnuKcVj5-bHfdLn7gYwion-s%2526m%253DLsPyeHTZWjukByDXM_WXz6yA4IXC5xTPcuS81QsROsg%2526s%253DE62oVC04x89V_ZC5d0kRPswRNbvGunJC3L9qrRjL3DI%2526e%253D%26amp%3Bdata%3D02%257C01%257Cdgross%2540cardinalsolutions.com%257Ca76b8eb320014576af9308d547dabc21%257C414efc3368fe4520802faea4401192d0%257C0%257C0%257C636493927146760062%26amp%3Bsdata%3DyuSN0bQX3UebGFw5iUq1z0M6cfpXq%252BIyBn%252FUQxEVyKU%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F2616712%2Fhow-to-configure-and-to-troubleshoot-mapped-network-drives-that-connec%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20general%2C%20attempting%20to%20map%20a%20drive%20to%20SharePoint%20Online%20is%20not%20reliable%20and%20can%20cause%20numerous%20support%20tickets.%20Showing%20users%20how%20to%20Sync%20a%20desired%20document%20library%20is%20the%20recommended%20approach%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2267651%22%20slang%3D%22en-US%22%3ERe%3A%20Connect%20to%20Sharepoint%20Online%20usin%20CMD%2F'net%20use'%2F'Add%20a%20network%20location'%20(without%20Internet%20explo%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2267651%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096%22%20target%3D%22_blank%22%3E%40Dean%20Gross%3C%2FA%3E%26nbsp%3B%2C%20Hello%20mr%20Dean%2C%20please%20reply%20to%20initial%20question%20%22how%20to%20connect%20Sharepoint%20via%20CMD%22..%20and%20stop%20telling%20why%20it%20is%20not%20good%20idea!%20...%20because%20of%20%22after%20reboot%22%26nbsp%3B%20i%20have%20to%20connect%20it%20manually.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eit%20is%20still%20better%20to%20always%20do%20%22reconnect%22%20as%20don't%20have%20it%20at%20all...%20YOU%20KNOW%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20please%2C%20be%20so%20kind%20and%20add%20screen%2C%20or%20link%20to%20screen%20where%20list%20of%20commands%20expected%20are%20listed%20(and%20example%20address)%20which%20will%20answer%20initial%20question.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20very%20much%20in%20advance%3C%2FP%3E%3CP%3EPS.%20if%20you%20don't%20want%20to%20receive%20ticket%20from%20users%20about%20issues%20concerned%2C%20just%20ignore%20it%20for%20some%20time%20%3AD%2C%20but%20stop%20blocking%20users%20%3B)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi,

 

I would like to be able to add Sharepoint Online (SPO) locations to my computer and users's computers by simply using the 'net use' command in command prompt or 'Add a network location' in Windows Explorer without having to go on Internet Explorer (IE).

 

How can this be done? 

 

I understand that they'll have to enter their username and password in a 'Windows Security' prompt, like below:enter-network-password

 

 

 

 

 

 

 

 

 

 

 

 

Thanks,

 

Notes:

Cannot use IE as:

  1. Internet Explorer is no longer supported and has issues with crashing.
  2. Need to add multiple network locations in different SPO tenants.

Want to use CMD/'net use'/'Add a network location' as:

  1. it is easier for the users
  2. Can give them a batch file (.bat) or
  3. ask them to follow GUI prompts in Windows explorer.

 

 

4 Replies

One of the primary issues with Mapped drives and SP Online is that with a SharePoint Online mapped drive on Windows 7, the mapped drive will not stay connected if the computer is restarted or you sign out.

 

The above is from https://support.microsoft.com/en-us/help/2616712/how-to-configure-and-to-troubleshoot-mapped-network...

 

In general, attempting to map a drive to SharePoint Online is not reliable and can cause numerous support tickets. Showing users how to Sync a desired document library is the recommended approach

Thanks for the reply.

 

I've seen that support article before.

 

The issue is that it requires the user to be logged into Internet Explorer first.

 

I would like to know if there are any options to allow the user to login using WebDAV or 'Add a network location' in Windows or Mac, without using Internet Explorer.

 

Using the sync client to sync various locations on SPO with different logins is a bit of an issue. Where as, 'Add a network location' is a quick and easy way of browsing SPO items and disconnecting when done.

Any update on this? Having the same problem...

@Dean Gross , Hello mr Dean, please reply to initial question "how to connect Sharepoint via CMD".. and stop telling why it is not good idea! ... because of "after reboot"  i have to connect it manually.

 

it is still better to always do "reconnect" as don't have it at all... YOU KNOW ?

 

So, please, be so kind and add screen, or link to screen where list of commands expected are listed (and example address) which will answer initial question.

 

Thank very much in advance

PS. if you don't want to receive ticket from users about issues concerned, just ignore it for some time :D, but stop blocking users ;)