Skip navigation

JSI Tip 0229 - How do I map an network drive during Unattended Setup?

Since the cmdlines.txt is run after MachineName is posted and the Network is started, we can add our code following the \[Commands\] statement to perform load balancing (distribution share on one server, application or Service Pack share on another):

\[Commands\]
".\net use s: \\server\share /user:Domainname\Username password /persistent:no"

Note: The /persistent parameter is used to ensure that the drive letter is not automatically reconnected when logging on.
Note: If you are concerned that the new MachineName may not be validated by your PDC, use the Guest Account (/user:Domainname\Guest).

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish