Execute the command line commands unattended
The unattend.xml response file with the element /FirstLogonCommands/
SynchronousCommand provides you with the option to automatically execute commands
unattended when Windows first runs up. However, to do this, you must also activate the
autologon mode with the administrator account.
You can define as many FirstLogonCommands as required. You define the sequence in which
the commands are executed in the element /FirstLogonCommands/SynchronousCommand/
Order
In the response file used as example, two different command line commands are executed
with FirstLogonCommands/SynchronousCommand:
● Directory D:\Install released for the administrator account
● Activate the PCU Installer using the response file
Sample response file
Because settings are always user-specific, only a sample response file can be provided as an
example:
● Sample answer file for PCU 50.5 Windows 7 in the Service&Support Portal (http://
support.automation.siemens.com/WW/view/en/69154062)
Adapt this file to your requirements.
Table 2-1 Mandatory and recommended settings in response file "unattend.xml"
Path in the
XML data structure
Purpose Example
unattend/
settings/
component/
AutoLogon
Modify the user account for the autologon
mode (optional).
If you want to automatically execute com‐
mand line commands
(FirstLogonCommands) after the unat‐
tended installation of Windows, activate the
autologon mode in the unattend.xml.
Enter the password and user name of an
administrator account that you also want to
create with this response file.
FirstLogonCommands are only automat‐
ically executed when the administrator ac‐
count is active.
<AutoLogon>
<Password>
<Value>SUNRISE</Value>
</Password>
<Enabled>true</Enabled>
<Username>auduser</Username>
</AutoLogon>
unattend/
settings/
component/
OOBE/
ProtectYourPC
Settings for Windows update
Set the value 1 to ensure that important
and recommended Windows updates are
automatically installed.
<ProtectYourPC>1</ProtectYourPC>
unattend/
settings/
component/
OOBE/
NetworkLocation
Setting the network type and network iden‐
tifier
Set the value Other.
<NetworkLocation>Other</NetworkLocation>
First commissioning of the PCU 50.5
2.4 Unattended installation of the PCU Base Software
PCU Base Software (IM10)
Commissioning Manual, 12/2017, 6FC5397-1DP40-6BA1 21