how to make .bat file ask for user name and password - TechRepublic
Question
August 10, 2009 at 11:17 AM
kbosworth

how to make .bat file ask for user name and password

by kbosworth . Updated 16 years, 11 months ago

Does anyone know how to force a login script to ask for user name and password to connect networkdrives and printers to a non network computer i am using a .bat file for drives and VBScript for printers i.e.

net use U: /home
net use H: /d
net use H: \\DOMAINSERVER\common
net use I: /d
net use I: \\DOMAINSERVER\engineering
net use N: /d
net use N: \\DOMAINSERVER\Logs
net use R: /d
\\DOMAINSERVER\netlogon\scripts\jocks.vbs
call \\DOMAINSERVER\netlogon\dns\regdns.bat

now i need another element to make it ask for UN & Pass

Please help

This discussion is locked

All Comments