Users Guide
W2K8INST.BAT And W2K12INST.BAT
The W2K8INST.BAT and W2K12INST.BAT sample scripts are used to perform an unattended installation of the Windows
Server 2008 and Windows Server 2012 operating systems respectively. The variables and paths must be specified before
the operating system can be installed.
NOTE: It is recommended that you consult your Windows operating system documentation and unattended
deployment documentation to develop a thorough understanding of the Windows unattended installation process
before attempting to perform a full scripted deployment.
The syntax for W2K8INST.BAT and W2K12INST.BAT are w2k8inst.bat and w2k12inst.bat respectively.
Utilities Used
SETUP.EXE — Used to install the operating system in conjunction with the UNATTEND.XML answer file.
External Dependencies
W2K8INST.BAT and W2K12INST.BAT scripts uses two environment variables: DT_PLATFORM and DT_DRIVE.
The DT_PLATFORM variable is set by TKENVSET.BAT using platform discovery.
The DT_DRIVE denotes the network drive letter to the network shared path containing the Windows Server 2008 or
the Windows Server 2012 operating system source and the UNATTEND.XML file.
The W2K8INST.BAT and W2K12INST.BAT scripts uses the UNATTEND.XML file with SETUP.EXE utility to install the
operating system files. For more information about preparing the UNATTEND.XML file, see UNATTEND.XML.
Specifying The Windows Installation Variables And Installation Paths
To edit the Windows operating system installation variables, locate the following lines in W2K8INST.BAT or
W2K12INST.BAT:
:: Location of Unattend.xml file
set DT_UNATTEND=%DT_SYSTEMS%\%DT_PLATFORM%\unattend.xml
UNATTEND.XML
The UNATTEND.XML file is the default name of the answer file for automating the Windows setup during an unattended
installation. A sample copy of the UNATTEND.XML file is provided as part of the DTK download in the \Toolkit\Template
\Configs directory.
UNATTEND.XML contains the headings and parameters that instruct Windows setup to perform various configuration
tasks. In UNATTEND.XML, specify various setup options, including how to partition disks and the location of the
Windows image you want to install. Before a full deployment can be run, edit all appropriate headings and parameters,
as necessary.
NOTE: See your operating system documentation for instructions on modifying the options in the operating system
unattended installation file to customize the scripted installation of your operating system.
On systems running Windows Server 2008 operating system, save the completed file in the \Toolkit\W2K8_deploy
\<target system> directory after you have completed all necessary modifications to the UNATTEND.XML file.
After you have successfully edited your deployment scripts, you are ready to create your deployment media and run
your deployment. For instructions on creating the deployment media and running a full deployment, see Running The
Deployment Scripts.
53