Using a DOS command how to access a server with an "&" in the password
Posted on 2013-01-27
I am using the following command to log onto a Windows 2008 server.
net use \\server abc&def /user: administrator
The error message that is returned is 'd' is not recognized as an internal or external command, operable program, or batch file.
Obviously, the "&" is causing a problem. How can I access the server with an "&" in the password. I would like to not have to change the password. I have tried putting the password in single and double quotes but to no good effect.