SOLVED: How To Build A Windows 10 Image Using SysPrep and Customize the Default Profile

Windows 10 and 8 use a substantially different process to create images than what I had used in Windows XP and 7.  Fortunately it is not rocket science.  The four big differences are:

  1. You MUST remove the ‘Modern apps’ (anything from the ‘Store’) from the profile you are using to create your image
  2. If you want to modify the DEFAULT PROFILE, you MUST modify your current profile and then use <CopyProfile>true</CopyProfile> in a command line call to SYSPREP
  3. If you are using Windows 10 TH2 or newer you can use a Windows 7 or 8 license key.
    1. This is particularly handy for those Windows 8 PC’s that have the Key embedded in the BIOS
    2. During the install, just click SKIP THIS STEP on the ENTER PRODUCT KEY SCREEN and it will activate by itself after the desktop appears
    3. Keep in mind that OEM Windows 8 Pro Keys that are in the BIOS are NOT upgradable to Windows 10 ENTERPRISE.
  4. You CANNOT use an upgraded version of Windows 10 with SYSPREP
    1. This means if you installed the July 2015 release build and then upgraded it to TH2, SYSPREP will fail.
    2. The easy answer is to just use the LATEST (yes, they are different for each build) version of the Windows 10 Media Creation Tool

So lets get to it.

Simple Step By Step Instructions to Build A Windows 10 Customized Image:

  1. Download the LATEST (yes, they are different for each build) version of the Windows 10 Media Creation Tool
  2. Install it on a reference PC
  3. Install all of the software you want on the machine
    1. A word of caution is that I would not launch any of that software after it is installed as you want it to be fresh and you never know if SYSPREP is going to clear out the settings for third party software
  4. Run Windows Update and patch everything (again making sure that you do not get a new BUILD of Windows)
  5. Customize the desktop of the current user and note:

    What CAN be modified:
    > Windows wallpaper, icons, theme, colors and sounds
    > Screensaver
    > Taskbar location (bottom, left, top, right)
    > File Explorer settings like icon spacing, ribbon ON / OFF, hide / show hidden items, view as, group / sort, additional panes and so on
    > Desktop icon spacing and size
    > Software installed now will be available to all users

    What can’t be modified:
    > Pinned icons (Taskbar and Start) will not be copied to default profile (UPDATE: DEC 28, 2015 – I have found that non-‘Store’ apps such as Word, Excel, Acrobat, Notepad++ CAN be successfully pinned to the START menu as part of the default image)
    > Start Menu and Start Screen will remain default, cannot be modified

    Thank you to TENFORUMS for this note.

  6. Launch a POWERSHELL as an ADMIN and run Get-AppxPackage -AllUsers | Remove-AppxPackage
  7. Download and unzip THIS simple unattend file for you SYSPREP or make your own using WAIK
  8. Copy the UNATTEND.XML to your C:\
  9. Open a CMD PROMPT as an Administrator
  10. CD into the C:\WINDOWS\SYSTEM32\SYSPREP folder
  11. Paste in this command

    sysprep /oobe /generalize /shutdown /unattend:C:\unattend.xml

  12. Power the machine up when it is done, PXE boot off the network and push the image to your Windows Deployment Services WDS server

Thanks to Jason Jiang of Microsoft Partner Support and the following reference sites who helped me develop this process:

http://www.tenforums.com/tutorials/3020-windows-10-image-customize-audit-mode-sysprep.html

http://www.tenforums.com/tutorials/4689-apps-uninstall-windows-10-a.html

https://support.microsoft.com/en-us/kb/2769827

https://4sysops.com/archives/remove-provisioned-built-in-apps-in-windows-10/

http://www.ghacks.net/2013/08/20/how-to-remove-all-windows-8-apps-using-powershell/

http://superuser.com/questions/942418/how-do-you-forcefully-remove-apps-in-windows-10

http://www.experts-exchange.com/articles/21679/Windows-10-Sysprep-Guide.html

http://blogs.technet.com/b/mniehaus/archive/2015/11/11/removing-windows-10-in-box-apps-during-a-task-sequence.aspx

If you are reading this post, you might also be interested in our simple fix for How to Solve Windows Could Not Complete The Installation Windows, error that can occur after a SysPrep.


View Comments

  • Hello Ian,
    After running the sysprep command, when shutdown and restart the system, I am able to go to network boot but then error Windows failed to start, a recent hardware/software change might be the cause. Error : 0xc000000f.
    Please help

  • Great article!
    Is there a way to create an unattend file which install the OS without asking anything in the install process?

    Thanks you!

    • Hi Lau;

      You can definitely get to "zero touch" but my personal experience is that it is not worth the upfront effort, for the size of clients I have (and the number of machines they want imaged).

  • Hey Ian, I know this is over a year old, but I'm having trouble with the copy profile. I boot my machine into audit mode, change the desktop and add some items to the taskbar, then sysprep with the copyprofile.xml. Once I capture the image then re-deploy a new machine with that image, all seems well but when I log onto the machine, none of the settings are there. I am auto-joining the domain. Do you think that has anything to do with it?

    • Hi Ho;

      I don't think JOIN DOMAIN is the issue. Does your COPYPROFILE.XML contain true ?

  • Getting error when trying to upload image:

    could not clean image directory. Image is protected

    • Are you booting to your PC using a CAPTURE boot image that came from the SAME build that you are trying to capture (i.e. in WDS you have to create and use a CAPTURE boot image that was created using the same build of Win10 you have on your reference PC. If that is not the issue, confirm that when you are prompted for a location to save the image during the capture process that you selected a location on the C: drive. I hope that helps.

      • Do you folks or any readers out there have a feeling for which Windows 10 version is best to use in a public lab environment? It's a situation of many new users per machine, so fast logons are desired. I've been trying to use the LTSB version, with limited success. Also have tried using a free utility called DefProf from mm

  • Hi Ian, I try your tutorial but I received this error:

    Sysprep was not able to validate Your Windows installation. Review the log file at %WINDIR%\System32\Sysprep\Panther\setupact.log for details. After resolving the issue, use Sysprep to validate your installation again.

    Investigating the log file mentioned shows the following:

    SYSPRP Failed to remove apps for the current user: 0x80073cf2.

    ---
    I try to remove all Apps looking different post tutorial but don't work again.
    Sysprep finish always with the same error.

    Do you have a solution?
    thank in advance

    • Hi Tizzy;

      I would rerun step 6 and see what it shows:

      Get-AppxPackage -AllUsers | Remove-AppxPackage

      I hope that helps. I have not built an image in the last few months and will not be building another one until late fall.

  • anyone get this process working with a 3rd party image software? I have tried using HDClone 6 but the deployed image fails to boot with error 0x00001

  • Hi ,

    I Already use the Method mentioned into Tenfourms about coping the profile using sysprep and the customize.xml it seems that most the customized settings already migrated to the new user created but unfortunately most of the windows 10 settings is not migrated such as notifications and privacy etc.. and the default application to be associate with files for example the pdf file is always associated with edge while iam installing the adobe acrobat before the sysprep and every user need to be modified again this will be a hassle for large enterprise work even if you have multiple users will going to use the same machine ,

    do u have any suggestions?

    thanks for advance ..

  • Interesting tutorial. But what if there is no wds server, how can i use sysprep for creating a reference pc in w10?

    Normally one could use sysprep and dism and winpe for restoring the created image and unattend

    • It would be the same process, except the last steps of pushing it to a WDS server. After you have completed the SYSPREP step and the machine has shut down you could try any imaging software you wanted to capture and deploy your image. Ghost used to be great for this. SCCM will work but it is big dollars. WDS is free and very easy to install/configure. Alternately you could just capture the image to a USB stick or DVD. I have not done this myself, but I do not think it is very challenging. I hope this helps.

This website uses cookies.