Hi all,
I'm trying to make a sysprep answer file for Windows Server 2012R2 with the Windows System Image Manager, and TBH I'm rather stuck atm.
Everytime I try my current version on the answer file I get the following error message when the computer reboots:
Windows could not parse or process the unattend answer file for pass [specialize]. The setting specified in the answer file cannot be applied. The error was detected while processing the settings for component [Microsoft-Shell setup]"
I've tried fiddling around and back & forth with some of the settings in the area it tells me [Micorsoft-Windows-Shell-Setup] - but so far with no succes.
My current answer file looks like this:
<?xml version="1.0" encoding="utf-8"?><unattend xmlns="urn:schemas-microsoft-com:unattend"><settings pass="windowsPE"><component name="Microsoft-Windows-Setup" processorArchitecture="amd64" 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><WillShowUI>OnError</WillShowUI><Disk wcm:action="add"><CreatePartitions><CreatePartition wcm:action="add"><Order>1</Order><Size>100</Size><Type>Primary</Type></CreatePartition><CreatePartition wcm:action="add"><Order>2</Order><Extend>true</Extend><Type>Primary</Type></CreatePartition></CreatePartitions><ModifyPartitions><ModifyPartition wcm:action="add"><Active>true</Active><Label>Boot</Label><Format>NTFS</Format><Order>1</Order><PartitionID>1</PartitionID></ModifyPartition><ModifyPartition wcm:action="add"><Format>NTFS</Format><Order>2</Order><PartitionID>2</PartitionID><Label>System</Label></ModifyPartition></ModifyPartitions><DiskID>0</DiskID><WillWipeDisk>true</WillWipeDisk></Disk></DiskConfiguration><ImageInstall><OSImage><InstallTo><PartitionID>2</PartitionID><DiskID>0</DiskID></InstallTo><InstallToAvailablePartition>false</InstallToAvailablePartition><WillShowUI>OnError</WillShowUI><InstallFrom><MetaData wcm:action="add"><Key>/IMAGE/NAME</Key><Value>Windows Server 2012 SERVERSTANDARD</Value></MetaData></InstallFrom></OSImage></ImageInstall><UserData><ProductKey><Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key><WillShowUI>OnError</WillShowUI></ProductKey><AcceptEula>true</AcceptEula><FullName>--</FullName><Organization>--</Organization></UserData></component><component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" 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>da</InputLocale><UILanguage>en-US</UILanguage><SystemLocale>da</SystemLocale><UserLocale>da</UserLocale></component></settings><settings pass="oobeSystem"><component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><VisualEffects><FontSmoothing>ClearType</FontSmoothing></VisualEffects><OOBE><HideEULAPage>true</HideEULAPage><ProtectYourPC>3</ProtectYourPC><NetworkLocation>Work</NetworkLocation></OOBE><UserAccounts><AdministratorPassword><Value>UABhACQAJAB3ADAAcgBkAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value><PlainText>false</PlainText></AdministratorPassword><LocalAccounts><LocalAccount wcm:action="add"><Password><Value>UABhACQAJAB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value><PlainText>false</PlainText></Password><Description>Local Administrator</Description><DisplayName>Administrator</DisplayName><Group>Administrators</Group><Name>Administrator</Name></LocalAccount></LocalAccounts></UserAccounts><FirstLogonCommands><SynchronousCommand wcm:action="add"><Order>1</Order><Description>Basic configuration</Description><CommandLine>cmd.exe /c powershell.exe "c:\Windows\setup\scripts\unattend_config.ps1" > c:\Windows\setup\scripts\unattend_config.log</CommandLine><RequiresUserInput>false</RequiresUserInput></SynchronousCommand><SynchronousCommand wcm:action="add"><Order>2</Order><Description>Install Software</Description><RequiresUserInput>false</RequiresUserInput><CommandLine>cmd.exe /c c:\windows\setup\scripts\unattend_software.cmd</CommandLine></SynchronousCommand></FirstLogonCommands><AutoLogon><Password><Value>UABhACQAJAB3ADAAcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value><PlainText>false</PlainText></Password><Enabled>true</Enabled><LogonCount>2</LogonCount><Username>administrator</Username></AutoLogon><RegisteredOrganization>GKDK</RegisteredOrganization><RegisteredOwner>Windows User</RegisteredOwner></component></settings><settings pass="specialize"><component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><DisableWER>1</DisableWER></component><component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><DisableOOBAccelerators>true</DisableOOBAccelerators><DisableFirstRunWizard>true</DisableFirstRunWizard><DisableAccelerators>true</DisableAccelerators><Home_Page>about:blank</Home_Page><DisableDevTools>true</DisableDevTools><DisableDataExecutionPrevention>false</DisableDataExecutionPrevention><BlockPopups>no</BlockPopups></component><component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ComputerName>*</ComputerName><RegisteredOrganization>GKDK</RegisteredOrganization><ProductKey>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</ProductKey><TimeZone>Romance Standard Time</TimeZone></component><component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><RunSynchronous><RunSynchronousCommand wcm:action="add"><Order>1</Order><Path>cmd /c reg add "HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" /v ExecutionPolicy /t REG_SZ /d RemoteSigned /f</Path><Description>Configure Powershell security settings</Description></RunSynchronousCommand><RunSynchronousCommand wcm:action="add"><Order>2</Order><Path>cmd /c net user administrator /active:yes</Path><Description>enable administrator</Description></RunSynchronousCommand><RunSynchronousCommand wcm:action="add"><Order>3</Order><Description>Open RDS firewall port</Description><Path>netsh advfirewall firewall set rule name="Remote Desktop (TCP-In)" new enable=yes</Path></RunSynchronousCommand></RunSynchronous></component><component name="Microsoft-Windows-SQMApi" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><CEIPEnabled>0</CEIPEnabled></component></settings><cpi:offlineImage cpi:source="wim:c:/server%202012%20answer%20file/install.wim#Windows Server 2012 R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" /></unattend>
Any tips or pointers towards a solution would be greatly appreciated :)