1.    31 Jan 2017 #1
    Join Date : Jan 2017
    Posts : 4
    Wndows 10

    Running Sysprep errors out and points to setupact file


    Hello,

    I am trying to create a Windows 10 image using an unattend file and sysprep. When I run the command below:

    sysprep.exe /oobe /generalize /unattend:c:\windows\system32\sysprep\unattend.xml

    After which I get an error message prompting me that sysprep was unable to validate my Windows installation and to look at a log file located in the sysprep\panther folder.

    There are a few error lines I am unfamiliar with, any ideas on what I may need to fix? Attached are both the log file and the unattend answer file I created.
    Running Sysprep errors out and points to setupact file Attached Files
      My ComputerSystem Spec
  2.    31 Jan 2017 #2
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,976
    Windows 10 Pro

    Hi Sadi. welcome to Ten Forums.

    Which version (or build) and edition of Windows 10 you are trying to sysprep? Are you running sysprep after a clean install in Audit Mode, or later on an existing Windows 10 installation?

    Kari
      My ComputerSystem Spec
  3.    31 Jan 2017 #3
    Join Date : Dec 2015
    Posts : 5,962
    Windows10

    Sysprep does not like uwp apps that a user downloads (default ones preinstalled are ok).

    In this case it is candycrushsodasaga that is the issue (look at text in log file). So basically uninstall it before sysprepping.

    Unfortunately, it then tends to bomb out with similar error in next package and you have to delete that and so on.

    I would uninstall all uwp apps that you can upfront to avoid repetition.
      My ComputerSystem Spec
  4.    31 Jan 2017 #4
    Join Date : Jan 2017
    Posts : 4
    Wndows 10
    Thread Starter

    Quote Originally Posted by Kari View Post
    Hi Sadi. welcome to Ten Forums.

    Which version (or build) and edition of Windows 10 you are trying to sysprep? Are you running sysprep after a clean install in Audit Mode, or later on an existing Windows 10 installation?

    Kari
    Hi Kari,

    This is Windows 10 Pro, version 10.0.10586 Build 10586. I installed Windows 10 clean from the installation disk that came with the machine, we bulk order HP 840 with Windows 7 pre-installed but they come Windows 10 ready with a license. I am pretty sure that sysprep was run in Audit mode as I was unable to open certain applications such as Edge (despite me not using the keyboard shortcut during the setup screen to boot into Audit mode).
      My ComputerSystem Spec
  5.    31 Jan 2017 #5
    Join Date : Jan 2017
    Posts : 4
    Wndows 10
    Thread Starter

    Quote Originally Posted by cereberus View Post
    Sysprep does not like uwp apps that a user downloads (default ones preinstalled are ok).

    In this case it is candycrushsodasaga that is the issue (look at text in log file). So basically uninstall it before sysprepping.

    Unfortunately, it then tends to bomb out with similar error in next package and you have to delete that and so on.

    I would uninstall all uwp apps that you can upfront to avoid repetition.
    I did a clean install so I was surprised to see candycrush on there, I made sure the application was not on the device before running sysprep and tried to find the file you saw in the logs, but there was no trace of it, so I am not sure where that file is being referenced. I tried to go through the other error lines as well but I do not really understand what they are pointing to as an issue since they seem to just lead to the generalize.xml file found in C:/Windows/System32/Sysprep/ActionFiles
      My ComputerSystem Spec
  6.    31 Jan 2017 #6
    Join Date : Dec 2015
    Posts : 5,962
    Windows10

    You may have to use powershell commands to remove stuff - see tutorials section.
      My ComputerSystem Spec
  7.    31 Jan 2017 #7
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,976
    Windows 10 Pro

    Quote Originally Posted by sadi View Post
    This is Windows 10 Pro, version 10.0.10586 Build 10586. I installed Windows 10 clean from the installation disk that came with the machine, we bulk order HP 840 with Windows 7 pre-installed but they come Windows 10 ready with a license. I am pretty sure that sysprep was run in Audit mode as I was unable to open certain applications such as Edge (despite me not using the keyboard shortcut during the setup screen to boot into Audit mode).
    OK, I think that explains it.

    To start with, you of course know that Windows 10 version 1511 (build 10586) is already over 18 months old and honestly, you shouldn't use (and there really are no good reasons to use) it anymore to make your deployment image. The current branch and version is 1607 (build 14393) from August 2nd 2016. That's the version you should use.

    Next, if you did not specifically boot to Audit Mode with CTRL + SHIFT + F3 from OOBE regional settings dialog, you most definitely were not in Audit Mode. Instead you have installed Windows normally and then used built-in admin account in normal mode to customize and Sysprep. This explains why Edge and other UWP apps did not work; they are disabled when using built-in admin account both in normal and Audit Mode, Settings app being only exception.

    That being said, if you insist doing this using v. 1511, it had several issues with Sysprep. One was that you had to install it on a technician machine without network connection: on technician machine, unplug Ethernet cable, turn PC on and install until OOBE regional settings dialog, boot to Audit Mode and only then plug Ethernet cable back in and connect to Internet.

    This prevents Windows provisioning UWP apps too early and allows you to run Sysprep.


    Quote Originally Posted by sadi View Post
    I did a clean install so I was surprised to see candycrush on there, I made sure the application was not on the device before running sysprep and tried to find the file you saw in the logs, but there was no trace of it, so I am not sure where that file is being referenced.
    In v.1511 Candy Crush Saga was not preinstalled per se but it was one of those recommendations Windows showed after first boot to desktop. As it was not properly installed it was also hard to get rid of.

    It is preventing you to run Sysprep because of the reasons told above: You have installed Windows normally and sysprepped in normal mode (or entered Audit Mode later on when OOBE was already completed), not as it should be done with v.1511 installing Windows without network connection until in Audit Mode, connecting network, customizing and sysprepping.

    Kari
      My ComputerSystem Spec
  8.    31 Jan 2017 #8
    Join Date : Jan 2017
    Posts : 4
    Wndows 10
    Thread Starter

    Quote Originally Posted by Kari View Post
    OK, I think that explains it.

    To start with, you of course know that Windows 10 version 1511 (build 10586) is already over 18 months old and honestly, you shouldn't use (and there really are no good reasons to use) it anymore to make your deployment image. The current branch and version is 1607 (build 14393) from August 2nd 2016. That's the version you should use.

    Next, if you did not specifically boot to Audit Mode with CTRL + SHIFT + F3 from OOBE regional settings dialog, you most definitely were not in Audit Mode. Instead you have installed Windows normally and then used built-in admin account in normal mode to customize and Sysprep. This explains why Edge and other UWP apps did not work; they are disabled when using built-in admin account both in normal and Audit Mode, Settings app being only exception.

    That being said, if you insist doing this using v. 1511, it had several issues with Sysprep. One was that you had to install it on a technician machine without network connection: on technician machine, unplug Ethernet cable, turn PC on and install until OOBE regional settings dialog, boot to Audit Mode and only then plug Ethernet cable back in and connect to Internet.

    This prevents Windows provisioning UWP apps too early and allows you to run Sysprep.




    In v.1511 Candy Crush Saga was not preinstalled per se but it was one of those recommendations Windows showed after first boot to desktop. As it was not properly installed it was also hard to get rid of.

    It is preventing you to run Sysprep because of the reasons told above: You have installed Windows normally and sysprepped in normal mode (or entered Audit Mode later on when*OOBE was completed), not as it should be done with v.1511 installing Windows without network connection until in Audit Mode, connecting network, customizing and sysprepping.

    Kari
    Ah, I see, I will create a bootable usb with the latest build then and try it again. Is it best to create and sysprep the image through Audit mode? I did watch your videos where you created an image on a VM using it, but this was my first time working on Windows 10 and imaging in general so I was trying to find the simplest way to do it using whatever media came with the device. Either way, I will update when I get a chance to try this tomorrow and hopefully will have better results.

    Thanks!
      My ComputerSystem Spec
  9.    31 Jan 2017 #9
    Join Date : Oct 2013
    A Finnish expat in Germany
    Posts : 12,976
    Windows 10 Pro

    Quote Originally Posted by sadi View Post
    Ah, I see, I will create a bootable usb with the latest build then and try it again. Is it best to create and sysprep the image through Audit mode? I did watch your videos where you created an image on a VM using it, but this was my first time working on Windows 10 and imaging in general so I was trying to find the simplest way to do it using whatever media came with the device. Either way, I will update when I get a chance to try this tomorrow and hopefully will have better results.

    Thanks!
    I try to avoid using words "correct procedure"; every time I do so some other geek feels it important to split hairs and posts something like "I've always done it like this, not like as you tell"

    So, I am not telling the correct way to do this, I am just telling how I am doing image creation having always managed it without any issues. I'll list work flow in about right chronological order:

    1. Be sure your technician machine has no Internet connection
    2. Install Windows 10 normally until after last reboot the Regional Settings dialog is shown, press CTRL + SHIFT + F3 to reboot to Audit Mode
    3. In Audit Mode desktop, connect machine to network and Internet
    4. Install your software & additional features (for instance language packs), restart if an installer requires it; as long as you do not specifically tell Windows to exit Audit Mode, Windows returns to Audit Mode after restart
    5. Customize Windows as you wish
    6. Run Sysprep with /generalize and /oobe switches & your custom answer file (/generalize switch only required if default profile customizations have been done, it also requires COPYPROFILE component in answer file to be set TRUE)
    7. Capture image
    8. Deploy

    Kari
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Sysprep errors
I'm using an upgraded version of Windows 10, and I'm trying to do a sysprep on it. I've already completed the registry changes needed, but I'm still getting errors. If I could get some help on figuring out what needs to be done to fix it, that would...
Installation and Upgrade
Restore Points disappearing, Errors in Event Viewer
I have recently built a new machine and loaded it with WIN10 Pro-64. After installing the OS, I started loading lots of programs and utilities. During this process, I made a point of setting Restore Points after every few new installs so if...
Backup and Restore
Solved How to interpret setupact.log and setuperr.log from failed W10 install
Are there any tools that help pinpoint the real errors as opposed to all the "noise". My setuperr file is "only" 65KB but the setupact file is, and I'm not making this up, 32,866 KB. Is a setupact file that big a "good thing" or a "really,...
Installation and Upgrade
Sysprep unable to validate installation. (yet another sysprep case)
Hey everyone, I hope you're doing fine. Well, I'll keep this short and to the point. I want to run sysprep on my Windows 10 Pro (x64) PC and I've faced many errors till now which I somehow managed to dodge , Now I've come across another...
Installation and Upgrade
Solved Running sfc /scannow shows that there are errors
Things are not going well for me. Multiple system issues are being reported in the Reliability Monitor although these are not obvious while using the OS. One of the things I have now tried is sfc /scannow from a command prompt in both normal and...
Performance & Maintenance
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 17:21.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums