Thursday, October 9, 2008

Net Use with a password?

Okay so today I get a call from one of my guys who needs to map a drive in a batch script. No big deal just use the following......

net use z: \\server\share

boom no big deal.... then he came back with.....I need to give it a user name and password

net use z: \\servername\share password /user:username

Now if you put that in a batch file it password is in plain text so that is not very secure at all.

No comments: