How do I map a network drive during an unattended installation?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. This may be useful if you want to install software, such as a service pack, during installation.

Using the Cmdlines.txt file it is easy to map to a network share. Cmdlines.txt must be stored in the $OEM$ directory under your NT installation area, e.g. i386$OEM$. A very basic unattend.txt would consist of

[Unattended]
OemPreinstall = yes

The map command should be under the [Commands] section of your cmdlines.txt file, e.g.

[Commands]
".et use : \ /user: [] /persistent:no"

It is important to add the /user otherwise the system will attempt to use the System account which does not have an actual user account thus the command would fail. The /persistent:no is used as the connection should not be remade at each logon.

One option would be to enable the Guest account and give it access to the share which would mean you could connect at /user:Guest which would allow a connection to be made to the share even if the domain controller cannot be contacted.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like