Users Guide
NOTE: It is recommended that you consult your Windows or Red Hat Enterprise Linux Server operating system
documentation and unattended deployment documentation to develop a thorough understanding of the unattended
installation process before attempting to perform a full scripted deployment.
NOTE: While installing Linux, ensure that you install grub in the boot partition. Otherwise, you cannot boot to the utility
partition by pressing the <F10> key during reboot.
W2K12INST.BAT and W2K16INST.BAT
The W2K12INST.BATand W2K16INST.BATsample scripts are used to perform an unattended installation of the Windows Server 2012
R2 and Windows Server 2016 operating systems respectively. The variables and paths must be specied 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 W2K12INST.BATand W2K16INST.BATare w2k12inst.batand w2k16inst.bat respectively.
Utilities used
SETUP.EXE — Used to install the operating system in conjunction with the UNATTEND.XML and UNATTEND_UEFI.XML answer
les.
External dependencies
W2K12INST.BATand W2K16INST.BATscripts 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 2012 R2 operating
system source and the
UNATTEND.XML (in BIOS mode) or UNATTEND_UEFI.XML le (in UEFI mode).
The W2K12INST.BAT script uses the UNATTEND2K12.XML le (in BIOS mode) and UNATTEND2K12_UEFI.XML le (in UEFI mode)
with SETUP.EXE utility to install the operating system les. The W2K16INST.BAT script uses the UNATTEND2K16.XML le (in BIOS
mode) and UNATTEND2K16_UEFI.XML le (in UEFI mode) with SETUP.EXE utility to install the operating system les. For more
information, about preparing the UNATTEND.XML le, see UNATTEND.XML AND UNATTEND_UEFI.XML.
Specifying the windows installation variables and installation paths
To edit the Windows operating system installation variables (in BIOS mode), locate the following lines in W2K12INST.BAT:
:: Location of Unattend.xml file
set DT_UNATTEND=%DT_SYSTEMS%\%DT_PLATFORM%\unattend.xml
UNATTEND.XML aND UNATTEND_UEFI.XML
The UNATTEND.XML (in BIOS mode) and UNATTEND_UEFI.XML le (in UEFI mode) are the default name of the answer les for
automating the Windows setup during an unattended installation. A sample copy of the UNATTEND.XML and
UNATTEND_UEFI.XML le is provided as part of the DTK download in the \Toolkit\Template\Congs directory.
UNATTEND.XML and UNATTEND_UEFI.XML contains the headings and parameters that instruct Windows setup to perform various
conguration tasks. In UNATTEND.XML and UNATTEND_UEFI.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: On systems running Windows Server 2012 R2 operating system, save the default answer les as
UNATTEND2K12.XML or UNATTEND2K12_UEFI.XML.
NOTE: See your operating system documentation for instructions on modifying the options in the operating system
unattended installation le to customize the scripted installation of your operating system.
On systems running Windows Server 2012 R2 operating system, save the completed le in the \Toolkit\os_deploy\<target system>
directory after you have completed all necessary modications to the UNATTEND.XML or UNATTEND_UEFI.XML le.
47