Trying to script the mapping of a network drive with the username and password in the command line. Looks something like this:
net use M: \\x.x.x.x\share pass&word /user:jschmoe
However, the following error would result:
System error 1326 has occurred.
Logon failure: unknown user name or bad password
'word' is not recognized as an internal or external command, operable program or batch file.
Anyone have a clue as to how to specify a password that has an ampersand in it? It really isn't an option to change the password without an ampersand.
Thanks
net use M: \\x.x.x.x\share pass&word /user:jschmoe
However, the following error would result:
System error 1326 has occurred.
Logon failure: unknown user name or bad password
'word' is not recognized as an internal or external command, operable program or batch file.
Anyone have a clue as to how to specify a password that has an ampersand in it? It really isn't an option to change the password without an ampersand.
Thanks