I'm trying to create a windows cmd script that map a specific folder on a SharePoint server.

So far it work, but with too many restriction.

To use net use cmd I have to :

register on the website or I got the message:

System error 224 has occurred. Access Denied. 
Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.

Click on "Library" > "Open with Explorer" or I got the message:

 System Error 53 Has Occurred.
 The network path was not found.

If I follow all those steps above I get the result:

Drive Z: is now connected to \\server@SSL\DavWWRoot\Share

I tried to use my credentials on the command line:

net use * \\server@SSL\DavWWRoot\Share /user:username password

But i still got the error 53

I visited a hundred webpages, testing all solutions, but nothing seems to work.

So far I think it's related to the web client of Sharepoint not running, but how can I start it from command line ?

  • I like people downvoting without explanation.. – Frennetix Oct 26 '16 at 13:41

I wonder of those hundreds of webpages you have seen,
If one of them was mine...

You have to let the IE Browser do the authentication, because the connection is established by an ActiveX control (that's why Open with Explorer only works on IE 32 bit)

So you manually have to Open Library with Explorer once.

Then you can map the connection

My blog has detailed description, AND the option to paste your library URL and built the NET syntax for you


The funny thing is.. you only need that manual browser authentication once.
You can even close the Browser and the connection will persist.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.