Discussion Locked

Log in Script with password and user nam

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does anybody know the syntax for a Net Use command in a .bat file to add the User Name and Password. I have used it, but that was a long time ago.
Thanks

5 replies

by dave.osborne

net use "drive letter" (F:, G:, etc) \\computer\share /USER:domain\userlogin password

example ...

net use z: \\server\share /user:home\admin 12345

if you need more info, just type "net use /?" at the command prompt.

Hope this helps.

-Dave

This discussion is closed to new replies.