Windows 10 Sysprep fails after removing or updating Windows built-in Windows Store apps
So by now you have had an opportunity to start playing around with Windows 10 and maybe your organization is thinking about deploying Windows 10 in the Enterprise so we need to work on getting a custom image built and captured for deployment. MDT 2013 Update 1 https://www.microsoft.com/en-us/download/details.aspx?id=48595 is available and highly recommended for Build and capture scenarios. MDT 2013 Update 1 does have its fair share of bugs which are being worked quickly and an update to resolve those issues will hopefully be out soon but luckily Keith Garner https://keithga.wordpress.com/ has written up many of the bugs with workarounds so you don’t have to experience the pain of figuring them out on your own.
System Center 2012 Configuration Manager SP2/R2 SP1 https://blogs.technet.com/b/configmgrteam/archive/2015/05/14/announcing-the-availability-of-sysctr-2012-r2-configmgr-sp1-and-sysctr-2012-configmgr-sp2.aspx is also available and provides deployment support for Windows 10 while you could use this I still recommend MDT due to the ease of use, separation of infrastructure, portability, No client in the image and the fact that MDT uses the administrator account vs. system which allows easy profile customizations to name a few. Some additional guidance ensure you have CU1 https://support.microsoft.com/en-us/kb/3074857 applied to ConfigMgr which resolves an issue with importing Windows 10 drivers. Also make sure you have hotfix https://support.microsoft.com/en-us/kb/3084586 installed prior to importing drivers to resolve an issue with driver bloat.
The issue at hand is actually an issue from Windows 8 https://support.microsoft.com/en-us/kb/2769827 where if you remove the built-in apps during a build and capture sysprep will fail. I had imagined this was resolved by now but the fix is still in the works. The workaround is pretty simple we just need to kill access to the internet while we are building our image. There are many ways to achieve this depending on what you have at your disposal but below is a quick and easy netsh command to block internet access which will resolve our problems and allow sysprep to complete successfully. In the meantime ensure to keep your reference image patched with the latest CU’s for Windows 10 and this issue will hopefully be resolved and we can safely remove this step in the future.
Block Internet Access:
cmd.exe /c netsh advfirewall firewall add rule name="Block Internet" proto=TCP dir=out localport=any action=block en=yes profile=any remoteport=80,443
Enable Internet Access:
cmd.exe /c netsh advfirewall firewall delete rule name="Block Internet"
Disclaimer: The information on this site is provided "AS IS" with no warranties, confers no rights, and is not supported by the authors or Microsoft Corporation. Use of included script samples are subject to the terms specified
in the Terms of Use .
Comments
- Anonymous
October 04, 2015
Desktop Icons Change, Fastboot Option disabled after Sysprep on Windows 10 IoT - Anonymous
February 03, 2016
Got a newly installed VM. Windows 10. Went off to the Store and disabled app updates. Then removed those AppxProvisioned and AppxPackages that you can. Set my VM to an internal network [virtual SCCM server too] and it still doesn't work. You'd have though this would have been resolved before letting it 'out'! - Anonymous
February 03, 2016
In case someone comes across this link - didn't see this before but worked for me:https://www.niallbrady.com/2015/05/25/cannot-sysprep-windows-10-build-10122-fails-to-generalize/
which makes reference to this:
https://social.technet.microsoft.com/Forums/en-US/e7e4e250-3c1d-43dd-911b-0ba3394c13b1/10074-sysprep-a-fatal-error-occurred-when-trying-to-sysprep-the-machine?forum=WinPreview2014General
You need to stop the 'tiledatamodelsvc' service more than a few times before it actually stops ... in their infinite wisdom, Microsoft have set it so you cannot change the startup type either ... just to keep you on your toes!