Sign in with
Sign up | Sign in
Your question
Solved

Can a batch file be used to login to a network share?

Last response: in Windows XP
Share
October 21, 2010 6:50:57 PM

It it possible to have a batch file (command line) try to connect to \\server\share and use a predefined logon creditials? I have to go through about a hundred PC's and put in the creditals manually which is very tiring.

Best solution

October 21, 2010 6:54:27 PM

Just use "net use" in the batch file:

The syntax of this command is:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
Share
October 21, 2010 6:57:47 PM

I'll give this a try right now
m
0
l
October 21, 2010 7:03:03 PM

Best answer selected by Snipergod87.
m
0
l
!