The following procedure describes how to customize the Windows Server 2012 answer file.
- Open the sgdeploy\SGTKWinPE\AnswerFiles\win2012x64.xml file.
- Add the settings you want to customize, for example:
<TimeZone>%TK_TimeZone%</TimeZone>
- Set the value of the setting you added to a variable that you add to the appropriate Scripting Toolkit scenario .ini file.
Typically, you add this value to the
[NOS Installation Settings] section of the
.ini file.
Scripting Toolkit environment variables are surrounded by the percent sign (%), as shown in this example:
[GuiUnattended]
...
<TimeZone>%TK_TimeZone%</TimeZone>
...
- For each environment variable you assign, include a value in the corresponding scenario .ini file.
Typically you add this value to the
[NOS Installation Settings] section of the
.ini file.
Use the format
variable_name=value, where
variable_name is the name you selected in the answer file and
value is a valid value for the variable you are using, for example:
TK_TimeZone=035
or:
TK_TimeZone=Pacific Standard Time