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"?><unattendxmlns="urn:schemas-microsoft-com:unattend"><settingspass="windowsPE"><componentname="Microsoft-Windows-International-Core-WinPE"processorArchitecture="x64"publicKeyToken="31bf3856ad364e35"language="neutral"versionScope="nonSxS"xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SetupUILanguage><UILanguage>en-US</UILanguage></SetupUILanguage><InputLocale>0809:00000809</InputLocale><SystemLocale>en-GB</SystemLocale><UserLocale>en-GB</UserLocale></component><componentname="Microsoft-Windows-Setup"processorArchitecture="x64"publicKeyToken="31bf3856ad364e35"language="neutral"versionScope="nonSxS"xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><DiskConfiguration><Diskwcm:action="add"><CreatePartitions><CreatePartitionwcm:action="add"><Order>1</Order><Type>Primary</Type><Extend>true</Extend></CreatePartition></CreatePartitions><ModifyPartitions><ModifyPartitionwcm: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:offlineImagecpi: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