How to add a web folder via command line (Windows)

Posted on

How to add a web folder via command line (Windows) – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about windows, apache-2.2, command-line-interface, ldap, webdav.

I am trying to add a web folder via command line in windows. At first I though I should use the “net use” command, but when I tried I kept getting System error 67:

C:>net use *
the user name for
‘dev.subdomain.domain.tdl’: correctusername
the password for dev.subdomain.domain.tdl:

System error 67 has occurred.

The network name cannot be found.

The url I used works in a browser. It’s an Apache dav on basic auth LDAP authentication method being used.

Here’s the thing… I CAN create a web folder when I use the “Add a network place” wizard. When I do net use, I don’t see it listed in the prompt that follows.

What utility do I need to use to mount a web folder in command line?

Solution :

According to the System error 67 may be due to your WebDAV folder requiring an https connection. The same page has some solutions you could try.

Does putting the site into the Trusted Sites zone in IE make any difference? Maybe try that and then see if it works?

You need to be an administrative user to do this. Running a command like this with a non-administrative user produces the “network name not found” error. So the error message is a bit misleading I guess. It also probably depends on OS version. It’s surely different on a UAC-enabled Windows 7 box and a Windows XP box.

Secondly, “net use *” means you want to assign it a drive letter. The * assigns it some free drive letter. If you do not want to give it a drive letter, just omit the asterisk.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:Windowssystem32>net use * \
Drive Z: is now connected to \

The command completed successfully.

C:Windowssystem32>net use Z: /d
Z: was deleted successfully.

C:Windowssystem32>net use \
The command completed successfully.


If I try the above in a non-Administrator command prompt, I get a “network path not found” error.

Leave a Reply

Your email address will not be published.