WDS unattend.xml shutdown the system after installing the image instead of reboot



I have a large number of machines that I want to install Windows 7 by using WDS unattend.xml. unattend.xml works absolutely fine but I want WINPE to shutdown the system at the end of image installation and before OOBE.


Could you please let me know, how can I automate this process, so Winpe shutdown instead of rebooting after image deployment and before oobe.


Do I have to put this command x:\windows\system32\wpeutil.exe shutdown somewhere in unattend.xml or elsewhere else.


I would appreciate if you could please answer this question. Here my unattend.xml it works fine, but reboots the system instead of shutdown.



<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://ift.tt/1gZfvUg" xmlns:xsi="http://ift.tt/ra1lAU">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<InputLocale>0809:00000809</InputLocale>
<SystemLocale>en-GB</SystemLocale>
<UserLocale>en-GB</UserLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="x64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://ift.tt/1gZfvUg" xmlns:xsi="http://ift.tt/ra1lAU">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Order>1</Order>
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>Windows</Label>
<Letter>C</Letter>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<WindowsDeploymentServices>
<ImageSelection>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallImage>
<ImageGroup>xxxxxxxxxxx</ImageGroup>
<ImageName>xxxxxxxxxxxx</ImageName>
<Filename>xxxxxxxxxxxxx</Filename>
</InstallImage>
</ImageSelection>
<Login>
<Credentials>
<Domain>xxxxxxx</Domain>
<Password>xxxxxxx</Password>
<Username>xxxxxx</Username>
</Credentials>
</Login>
</WindowsDeploymentServices>
<restart>Shutdown</restart>
</component>
</settings>
<cpi:offlineImage cpi:source="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


I have also tried to use the command line like this, see below.



</WindowsDeploymentServices>
<CommandLine>
x:\windows\system32\wpeutil.exe shutdown
</CommandLine>


WinPE does not even start with above mentioend wpeutil.exe shutdown command, it throws an error and reboots.


I would really appreciate if someone can help me figure it out, how can I auto shutdown the system instead of reboot after WDS / WINPE installs the image.


Thanks in advance


No comments:

Post a Comment