[Solved] NET USE Password Issues
Posted: 08 Jun 2011 16:24
Hello all,
I want to create a batch file to automate the process of restoring images using Imagex, but I'm running into a problem.
Normally, what we (my school) would do is type
and then log in using
and type in the password.
What I want to do is create a file that prompts for password input, and then adds that password to the command by using
However, the password does not work! Even if I go to Command Prompt and type everything in the correct way, it still does not work. I researched this issue online and couldn't find the answer I'm looking for.
Thanks for any help!
I want to create a batch file to automate the process of restoring images using Imagex, but I'm running into a problem.
Normally, what we (my school) would do is type
Code: Select all
net use * \\servername.domain\drive$
and then log in using
Code: Select all
domain\administrator
and type in the password.
What I want to do is create a file that prompts for password input, and then adds that password to the command by using
Code: Select all
net use * \\servername.domain\drive$ /user:administrator %password%
However, the password does not work! Even if I go to Command Prompt and type everything in the correct way, it still does not work. I researched this issue online and couldn't find the answer I'm looking for.
Thanks for any help!