/build/static/layout/Breadcrumb_cap_w.png

Using K2000 how to Sysprep Windows 10 Enterprise version 1607 with out errors

I have been trying to Sysprep the latest version of  Windows 10 Enterprise and keep getting the following error in the sysprep logs. 

SYSPRP setupdigetclassdevs failed with error 0

Looking that error up is seems it more than likely had to do with the the titledatamodelsvc 

I looked on how to stop the service as i could not via the services menu so i found the registry key. Found this and applied this

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tiledatamodelsvc

Changed this to 4 rebooted so it was disabled. changed back to 2

disabled Defender

Sysprepped same error


Began sysprep 

1) loaded up latest version of windows 10 enterprise on a new machine

2) Windows did not update fresh image

3) changed the registry to disable tiledatamodelsvc using above

4) ensured defender was off

5) sysprepped

6) reimaged with debug on and had errors


Tried the same steps above including the following:


- Renaming (or deleting) c:\windows\system32\sysprep\panther folder.

 

 Set GeneralizationState to 7 in HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus

- Set SkipRearm to 1 in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform

- Run msdtc -uninstall

- Run msdtc -install

- Confirming the registry and check the GeneralizationState key was set to 7.


Still same error. Any help on not getting the error is welcomed. I have have tried tons of thing to get this to work but noting seems to help.


Thanks


6 Comments   [ + ] Show comments
  • Also forgot to mention we are on the latest k2000 build. - bodhi311 7 years ago
  • We are also on the latest K2000 build. We just syspreped a freshly updated win10 VM. WE also had to turn off Defender. We ended up placing the executor and unattended file inside its own folder on the root C drive. This resulted in no errors. - jboling 7 years ago
  • ok thank I will try that and thank for the prompt reply - bodhi311 7 years ago
  • Tried that and still get the message. I made sure i turned off defender and it showed the red x as it was off. Sysprep confirmed it was off and disabled the tiledatamodel service. Also placed the sysprep and xml in a folder on the root of c to run. any more thoughts? - bodhi311 7 years ago
  • Also tried the following:
    Setting HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus to 7

    Setting HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\SkipRearm to 1

    Renaming (or deleting) C:\Windows\System32\sysprep\Panther

    Along with the steps above and the same error SYSPRP setupdigetclassdevs failed with error 0 - bodhi311 7 years ago
  • ty bodhi for sharing this - jonsnow 7 years ago

Answers (7)

Posted by: jonsnow 7 years ago
Green Belt
0
check out its manual process
Posted by: jonsnow 7 years ago
Green Belt
0
or you can use the 3rd party software tool
Posted by: cserrins 7 years ago
Red Belt
0
The sysprepping of a machine has nothing to do with the K2000, this is a Microsoft Process, even if you use Sysprep Executor (a K2000 workbench tool), that still calls Microsoft's sysprep application).
Usually the issue is releated to installed applications that Microsoft automatically installs without asking, like Twitter and Candy Crush.  Look through your sysprep logs.

There are a few great articles about issues though on the Quest website
Sysprep Fails on windows 10
https://support.quest.com/kb/189840
Issues that can disrupt Sysprep
https://support.quest.com/kb/184427

Comments:
  • Thanks for this I took a look at the articles and I am still getting the SYSPRP setupdigetclassdevs failed with error 0 in the logs after the sysprep.
    in the debuglog\sysprep\Panther\setuperror.log. The steps I took here were the following:

    1. run these to clean up apps

    a.Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -notlike "*store*"} | Remove-AppxProvisionedPackage -Online


    b. Get-AppxPackage -AllUsers | Where-Object {$_.name -notlike "*store*"} | Remove-AppxPackage




    2.Windows 10 stop tiledatamodelservice and make sure it is stopped it is automatic and will start back up

    a.Hkey_local_machine\SYSTEM\CurrentControlSet\Services\Tiledatamodelservice


    b.Locate start and change from 2 to 4


    c.Reboot


    d.Repeat step a


    e.Locate start and change from 4 to 2



    3.Turn off windows defender


    4.Navigate windows\system32\sysprep\

    a.Rename or delete Panther folder



    5.Run the sysprep_executor.exe on the machine


    6.NOTE: if errors look at this article https://support.quest.com/kb/189840

    a.Run commands to remove offending packages


    b.Get-AppxPackage | Select Name, PackageFullName


    c.Remove-AppxPackage (PackageFullName obtained from above cmd)


    d.You may have to run steps 4 and 5 until no more errors

    Once sysprepped I take the image and reload it on to a machine. In the k2000 I turn on the debug logs and let the image finish. - bodhi311 7 years ago
Posted by: SMal.tmcc 7 years ago
Red Belt
0
I do not mess with the tiledata service or defender.  I run a powershell script to remove the apps I want gone prior to sysprep and that export the app associations and tile layout for post processing

here is the the last powershell commands I ran. (you can cut and paste all at once then hit enter and it will process all the lines.)
get-appxpackage *BingWeather* | remove-appxpackage
get-appxpackage *Xbox* | remove-appxpackage
get-appxpackage *Messaging* | remove-appxpackage
get-appxpackage *OneNote* | remove-appxpackage
get-appxpackage *People* | remove-appxpackage
get-appxpackage *Photos* | remove-appxpackage
get-appxpackage *Alarms* | remove-appxpackage
get-appxpackage *Camera* | remove-appxpackage
get-appxpackage *Maps* | remove-appxpackage
get-appxpackage *Feedback* | remove-appxpackage
get-appxpackage *Zune* | remove-appxpackage
get-appxpackage *news* | remove-appxpackage
get-appxpackage *parent* | remove-appxpackage
get-appxpackage *get* | remove-appxpackage
get-appxpackage *bound* | remove-appxpackage
get-appxpackage *adobe* | remove-appxpackage

get-appxpackage -allusers *BingWeather* | remove-appxpackage
get-appxpackage -allusers *Xbox* | remove-appxpackage
get-appxpackage -allusers *Messaging* | remove-appxpackage
get-appxpackage -allusers *OneNote* | remove-appxpackage
get-appxpackage -allusers *People* | remove-appxpackage
get-appxpackage -allusers *Photos* | remove-appxpackage
get-appxpackage -allusers *Alarms* | remove-appxpackage
get-appxpackage -allusers *Camera* | remove-appxpackage
get-appxpackage -allusers *Maps* | remove-appxpackage
get-appxpackage -allusers *Feedback* | remove-appxpackage
get-appxpackage -allusers *Zune* | remove-appxpackage
get-appxpackage -allusers *news* | remove-appxpackage
get-appxpackage -allusers *parent* | remove-appxpackage
get-appxpackage -allusers *get* | remove-appxpackage
get-appxpackage -allusers *bound* | remove-appxpackage
get-appxpackage -allusers *adobe* | remove-appxpackage

remove-appxprovisionedpackage -online -packagename Microsoft.3DBuilder_12.0.3131.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Getstarted_4.4.11.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Messaging_2.7.1001.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.MicrosoftOfficeHub_2015.7608.23501.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.Office.OneNote_2015.7766.57771.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.OneConnect_1.1607.6.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.People_2016.1206.1548.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.SkypeApp_11.10.152.0_neutral_~_kzf8qxf38zg5c
remove-appxprovisionedpackage -online -packagename Microsoft.Windows.Photos_2016.1118.10000.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WindowsAlarms_2017.110.2126.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WindowsFeedbackHub_1.1611.3471.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.WindowsMaps_2016.1129.2158.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.XboxApp_2017.126.250.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.XboxIdentityProvider_2016.719.1035.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.ZuneMusic_2019.16122.10271.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.ZuneVideo_2019.16112.10221.0_neutral_~_8wekyb3d8bbwe
remove-appxprovisionedpackage -online -packagename Microsoft.BingWeather_4.18.37.0_neutral_~_8wekyb3d8bbwe


Comments:
  • Awesome thanks for the share I will try this and let you know. - bodhi311 7 years ago
  • Same darn error. I am going to try the Windows 10 LTSB version of enterprise to see if I still get the same issues. - bodhi311 7 years ago
  • ok i am tryring this now
    1) new image - no express install all flags turned off
    2) no updates run
    3) running Get-AppxPackage -AllUsers | Remove-AppxPackage to remove all packages
    4) turn off tiledatamanagersvc set to 4 reboot set back to 2
    5) turn off defender
    6) removing the c:\windows\system32\sysprep\panther folder 8)Placing the sysprep files in root of c: under own folder
    9) Sysprepping making sure we capture user profile to keep the changes - previous was not checked.

    Hoping this gives a clean image - bodhi311 7 years ago
Posted by: bodhi311 7 years ago
Yellow Belt
0
Still no go on getting a cliean image with no messages in the following directory. still get the one 

SYSPRP setupdigetclassdevs failed with error 0 located in  debuglog\sysprep\Panther\setuperror.log 

If anyone else has anything to try we would be happy to do so. 

Thanks,
Posted by: ronfalkoff 7 years ago
Green Belt
0

If the service tiledatamodelsvc is responsible, and all you have to do to fix is stop the service before running sysprep. That service prevents Sysprep from accessing the files inC:\ProgramData\Microsoft\Windows\AppRepository.

To resolve the problem, try one of these three methods:

1. Stop it with PowerShell as Administrator

Stop-Service tiledatamodelsvc

2. Stop it from a cmd prompt as administrator

net stop tiledatamodelsvc

3. Stop it in the Computer Management console

Open Computer Management and select services, locate the tiledatamodelsvc, right click it, and choose Stop.

Once the service is stopped, you can sysprep the computer.


Comments:
  • I was able to stop the service and build the image but i still receive an error when going through the logs on the image in the following directory when collecting the debug logs via the k2000.

    debuglog\sysprep\Panther\

    2017-02-28 14:32:22, Error SYSPRP setupdigetclassdevs failed with error 0

    I will try it again on a different gold image to see if it persists. - bodhi311 7 years ago
Posted by: bodhi311 7 years ago
Yellow Belt
0
Looks like this person is having the same issue. All steps in this article have been performed with the same outcome.


https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/windows-10-version-1607-sysprep-succeeds-with/0d52b6b0-5005-41d5-8071-0bdc3c2e88c7

I am starting to wonder the same thing. Has anyone gotten a clean image from the 1607 build?

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ