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

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.
3 answers Last reply Best Answer
More about batch file login network share
  1. Best answer
    Just use "net use" in the batch file:

    The syntax of this command is:

    [devicename | *] [\\computername\sharename[\volume] [password | *]]
    [/USER:[dotted domain name\]username]
    [/USER:[username@dotted domain name]
    [[/DELETE] | [/PERSISTENT:{YES | NO}]]
  2. I'll give this a try right now
  3. Best answer selected by Snipergod87.
Ask a new question

Read More

Configuration Login Command Line Windows XP