enthuguy
asked on
net use password managment
Hi,
could you pls suggest me the best way for below scenario?
Would like to map a share drive using "net use" in scripting. ...do some stuff (copy,write/delete) ...then delete the drive.
Right now I have to pass the username/pwd as an argument.
Is there way to manage without providing the password?
or
Is there a way to encrypt the pwd and supply that in the argument?
or
Can I provide the password as an input text file to "net use" ...again encrypted
or
what is the best practice
thanks in advance
could you pls suggest me the best way for below scenario?
Would like to map a share drive using "net use" in scripting. ...do some stuff (copy,write/delete) ...then delete the drive.
Right now I have to pass the username/pwd as an argument.
Is there way to manage without providing the password?
or
Is there a way to encrypt the pwd and supply that in the argument?
or
Can I provide the password as an input text file to "net use" ...again encrypted
or
what is the best practice
thanks in advance
You can use /savecred to save credentials so you don't need to type them next time.
If we knew why you want to use it that way, it would be easier to answer.
ASKER
thx Gerwin, could you point me to some link....on how to configure this in windows 2012. I saw something in Win8 called "Credential Manager"
Mckinfe, would like to map, do some stuff, and delete thru scripting. and I dont want to expose clear text password anywhere in my script or property file.
Mckinfe, would like to map, do some stuff, and delete thru scripting. and I dont want to expose clear text password anywhere in my script or property file.
And why would a different credentialset be necessary? Won't it be possible to execute it as startup script or scheduled task right away?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.