PC Deployment with SCCM and MDT

Latest News

  • USMTGUI migrates user profiles to Azure AAD
  • SCCM – Installing intrusive Applications…
  • Remove keyboard layout from Windows 10
  • WSUS fail – Reset defunct WSUS
  • network connection check with Powershell
  • Home
  • SCCM Pages
  • Videos
  • Self-study Guides
  • All Posts
  • Tips & tricks
  • About US

Sysprep fails on Windows 10 Appx updates

Jun 07, 2016 Thomas Ehler Uncategorized 0


Solution to MDT Windows 10 Image failing Sysprep

Hi Johan

 

The reason Windows 10 has started failing Sysprep when building reference images, turns out to be that the Appx update routine starts one hour after Windows 10 goes online.

It then starts downloading and staging updates for the built-in apps. It is these updates that result in Sysprep failing. It can be found in the setuperr.log
See more at: http://serverfault.com/questions/778916/sysprep-error-when-building-a-win10-reference-image/782420#782420

Since we, at my work, update both Windows AND Office we spend many hours online before Sysprep. Hence Sysprep fails.

 

It appears that if we, through GPEDIT, Enable
“Local Computer Policy > Administrative Templates > Windows Components > Store:
“Turn off Automatic Download and install of updates””

– the Appx app updates are NOT downloaded AND Sysprep stops failing J

APPXUpdateDisable

 

This needs to be automated!

But sadly there’s no way to set this locally on a Pc. Not Regedit, PowerShell or WMI….

Get the Settings

However it turns out this is stupidly simple to work around:
Set the settings mentioned above and then the corresponding hidden folders
%systemroot%\System32\GroupPolicy\Machine and User pops up with a Registry.pol file containing these settings. (The “Machine”/”User” folder structure is not present until the first policy is set.)

Automate it

Copy everything under the “%systemroot%\System32\GroupPolicy\” folder and build an application that plops the folders and files down in place followed by a “GPupdate /force”.
(I simply created an application containing a root folder “policies” with everything in it  and used xcopy directly as command line. “xcopy policies %systemroot%\System32\GroupPolicy /S /I /E /V /H /Y“)

Run this “Application” at the top of the “State Restore” step in your Build TS, followed by GPupdate /force..

Win10AppxUpdateblocker

 

That’s it


MDT SYSPREP and DISM errors at Image builds Post 1. Setting up VMware AD and SCCM 1511

Thomas Ehler

Related articles
  • USMTGUI migrates user profiles to Azure AAD
    USMTGUI migrates user profiles to Azure...

    Jun 11, 2020 0

  • SCCM – Installing intrusive Applications…
    SCCM – Installing intrusive...

    May 29, 2019 0

  • Remove keyboard layout from Windows 10
    Remove keyboard layout from Windows 10

    Apr 09, 2019 0

  • WSUS fail – Reset defunct WSUS
    WSUS fail – Reset defunct WSUS

    Aug 09, 2018 0

More in this category
  • USMTGUI migrates user profiles to Azure AAD
    USMTGUI migrates user profiles to Azure...

    Jun 11, 2020 0

  • SCCM – Installing intrusive Applications…
    SCCM – Installing intrusive...

    May 29, 2019 0

  • Remove keyboard layout from Windows 10
    Remove keyboard layout from Windows 10

    Apr 09, 2019 0

  • WSUS fail – Reset defunct WSUS
    WSUS fail – Reset defunct WSUS

    Aug 09, 2018 0


Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • USMTGUI migrates user profiles to Azure AAD
  • SCCM – Installing intrusive Applications…
  • Remove keyboard layout from Windows 10
  • WSUS fail – Reset defunct WSUS
  • network connection check with Powershell
  • SCCM State Migration Point Creation
  • USMT XML files improved and updated for USMT 10 and Windows 10
  • USMT migration of Edge favourites and Sticky Notes
  • SCCM Task Sequence Reinstall User warning.
  • ConfigMgr-SQL-recommendations.xlsx

Recent Videos

  • Building the Perfect Windows 8.1 Image

    Building the Perfect Windows 8.1 Image

    Mar 13, 2014
  • Master ConfigMgr 2012 R2 with a Limited Budget

    Master ConfigMgr 2012 R2 with a Limited Budget

    Mar 13, 2014
  • #3 SCCM2012 Application Management Part 1

    #3 SCCM2012 Application Management Part 1

    Mar 10, 2014
  • #2 SCCM 2012 Infrastructure Technical Overview

    #2 SCCM 2012 Infrastructure Technical Overview

    Mar 10, 2014
  • #1 SCCM 2012 Technical Overview

    #1 SCCM 2012 Technical Overview

    Mar 10, 2014

Recent comments

  • User State Migration Tool (USMT) Troubleshooting - EhlerTech on USMT – User State Migration Tool Errors
  • Mark H on Upgrade to Windows 10 with SCCM
  • SCCM Deploy – SCCM 2012 Comprehensive guides by Prajwal Desai on Post 1. Setting up VMware AD and SCCM 1511
  • SCCM Deploy – Post 1. Setting up VMware AD and SCCM 1511 on Post 4. Setup SCCM 2012 1511
  • SCCM Deploy – Post 3. DC – Setup DHCP and if needed KMS on Post 4. Setup SCCM 2012 1511
Copyright 2014 / All rights reserved