Re: Windows 10 1703 Image with strange issue
I have taken advice from all over the Internet, and I’m failing every time after the SysPrep has completed. I want to create an image (generic or specific to the hardware) with Windows 10, Office 2016, browsers and our regular applications. Part of what I want to do is also duplicate the Start Menu layout, but nothing is working.
The latest attempts will capture the image, then a message comes up on the same computer I built the image on saying "Windows could not finish configuring the system. To attempt to resume configuration, restart the computer."
. I can click OK many times, and the computer just restarts and does the same thing.
My unattend.xml
file is here:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="auditSystem">
<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">
<AuditComputerName>
<Name>JMC-X-AUDIT</Name>
</AuditComputerName>
</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">
<UserAccounts>
<AdministratorPassword>
<Value>REDACTED</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" 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">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-CA</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</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">
<DesktopOptimization>
<GoToDesktopOnSignIn>true</GoToDesktopOnSignIn>
<ShowWindowsStoreAppsOnTaskbar>true</ShowWindowsStoreAppsOnTaskbar>
</DesktopOptimization>
<OEMInformation>
<SupportURL>https://jmc.sd57.bc.ca/~lbarone</SupportURL>
</OEMInformation>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<WindowsFeatures>
<ShowInternetExplorer>true</ShowInternetExplorer>
</WindowsFeatures>
<UserAccounts>
<AdministratorPassword>
<Value>REDACTED</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>C:\Windows\Setup\Scripts\SetupComplete.cmd</CommandLine>
<Description>Run SetupComplete.cmd batch file</Description>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
</component>
<component name="Microsoft-Windows-WiFiNetworkManager" 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">
<DefaultAutoConnectOpenState>0</DefaultAutoConnectOpenState>
<DefaultAutoConnectSharedState>0</DefaultAutoConnectSharedState>
<WiFiSenseAllowed>0</WiFiSenseAllowed>
<WiFiSharingFacebookInitial>0</WiFiSharingFacebookInitial>
<WiFiSharingOutlookInitial>0</WiFiSharingOutlookInitial>
<WiFiSharingSkypeInitial>0</WiFiSharingSkypeInitial>
</component>
<component name="Microsoft-Windows-WinRE-RecoveryAgent" 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">
<UninstallWindowsRE>true</UninstallWindowsRE>
</component>
</settings>
<settings pass="specialize">
<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">
<StartPages>
<StartPage wcm:action="add">
<StartPageKey>1</StartPageKey>
<StartPageUrl>https://www.sd57.bc.ca/school/cla/Pages/default.aspx</StartPageUrl>
</StartPage>
</StartPages>
<SuggestedSitesEnabled>false</SuggestedSitesEnabled>
<Home_Page>https://www.sd57.bc.ca/school/cla/Pages/default.aspx</Home_Page>
<DisableOOBAccelerators>true</DisableOOBAccelerators>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<DisableAccelerators>true</DisableAccelerators>
<CompanyName>School District #57 (Prince George)</CompanyName>
</component>
<component name="Microsoft-Windows-WwanUI" 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">
<NotInOOBE>true</NotInOOBE>
</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">
<CopyProfile>true</CopyProfile>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-Windows-SharedAccess" 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">
<EnableICS>false</EnableICS>
</component>
</settings>
<cpi:offlineImage cpi:source="wim://tech-lbarone/users/luke/desktop/win10x64pro_workingdir/sources/install.wim#Windows 10 Pro Technical Preview" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
The latest take was done in Hyper-V, with the recommendation to make base images in a virtualized environment. Next step will be to figure out how to get it to work with FOG’s PXE boot mode, but that’s later.
Steps to reproduce:
- Use our Volume License media to install Windows 10, wiping the hard drive and letting Windows partition as necessary
- Go into Audit mode during Cortana setup screen
- Install Office 2016, AVG Anti-virus (disabled during testing and setup), Chrome / Firefox, Adobe Reader
- Apply Local Group Policy (no Active Directory domain setup)
- Install the FOG client from my FOG installation (Running Version 1.3.4, SVN Revision: 6064). Service is disabled in
services.msc
- Customize the Admin profile (i.e. desktop icons, Start Menu, background picture, etc)
- Restart system (still in Audit), verify everything looks good. Copy
SetupComplete.cmd
, Layout.ps1
, and our Wireless profile file to C:\Windows\Setup\Scripts
. Copy the unattend.xml
file to C:\Windows\System32\SysPrep
- Restart one more time for good measure.
- Run
sysprep /quiet /generalize /oobe /shutdown /unattend:unattend.xml
from the Command Prompt, in the C:\Windows\System32\SysPrep
working folder
- Attempt to capture image
- System turns back on, and the error message appears.
Below is my SetupComplete.cmd
file:
sc config FOGService start= auto
net start FOGService
echo Installing Windows Product Key...
cscript //b c:\windows\system32\slmgr.vbs /ipk REDACTED
echo Activating Windows....
cscript //b c:\windows\system32\slmgr.vbs /ato
netsh wlan add profile filename=Private-SD57-2.xml user=all
Powershell.exe -NoProfile -Command "& {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy ByPass -File ""%~dp0\layout.ps1""' -Verb RunAs}"
rd /S /Q "C:\Users\Default\AppData\LocalLow"
rd /S /Q "C:\users\Default\AppData\Local\Microsoft\Windows\WebCache"
rd /S /Q "C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache"
del /F "C:\Users\Default\AppData\Local\Microsoft\Windows\WebCacheLock.dat"
REM del /F C:\Windows\System32\Sysprep\unattend.xml
REM del /F C:\Windows\Setup\Scripts\SetupComplete.cmd
REM del /F C:\Windows\Setup\Scripts\Private-SD57-2.xml
del /F c:\windows\system32\sysprep\panther\setupact.log
del /F c:\windows\system32\sysprep\panther\setuperr.log
del /F c:\windows\system32\sysprep\panther\ie\setupact.log
del /F c:\windows\system32\sysprep\panther\ie\setuperr.log
shutdown -r -t 60 -f
Where can I go to troubleshoot further?