WildTurkey101
IS-IT--Management
Good Day.
I have a need for a batch file to map a drive for multiple users. It would need to prompt the user for their user name, and then their password.
In the old days for a single user I would do:
net use K: "\\ServerName\userdisk\Folder1" /useromain Name\JUser /persistent:no
This batch file displays the username and then asks for the user's password when executed. Is there a syntax that would ask for both the username, then the password?
Thank you
I have a need for a batch file to map a drive for multiple users. It would need to prompt the user for their user name, and then their password.
In the old days for a single user I would do:
net use K: "\\ServerName\userdisk\Folder1" /useromain Name\JUser /persistent:no
This batch file displays the username and then asks for the user's password when executed. Is there a syntax that would ask for both the username, then the password?
Thank you