Windows 10 sysprep error.
-
@John-Johnson Its more to the point how you removed the applications
You need to run both commands
Remove-AppxPackage
Remove-AppxProvisionedPackage -
I also removed the Windows Store app in the registry.
-
I used a modified version of the script that is the accepted answer here:
https://social.technet.microsoft.com/Forums/en-US/9c4cac17-1893-49c5-9b30-a6c31ca6e2f9/windows-10-builtin-app-uninstall-for-allusers?forum=win10itprogeneralI build my Win10 CBB reference image with MDT and have that powershell script run as a task sequence.
-
@george1421 This is done in Windows PowerShell? I did remove the apps that way.
-
@John-Johnson Hmm the error message kind of indicates you ran
Remove-AppxProvisionedPackage this command which uninstalls the package but did not run this command Remove-AppxPackage to remove it from the current user. Again this is only a wild guess based on what I think the error messages means. -
MS KB with this error listed (condition 3) https://support.microsoft.com/en-us/kb/2769827
-
@george1421 I ran the commands as Administrator. I did not run them under the original user account.
-
@John-Johnson Did you ever login as someone else on that system? If someone else has a profile that is already been created then you have your answer.
Again just guessing (at bit better each time) based on the info I have so far.
-
@george1421 I just found a comment about making sure your reference machine can’t connect to the internet, because if it can it will begin to download stuff.
I can so for my setup the reference machine can’t connect to the internet because we hare behind a firewall and proxy server. So the reference machine can not get out period.
Ref: http://deploymentresearch.com/Research/Post/450/Sysprep-broken-in-Windows-10-Build-9926
Workarounds posted
There are two workarounds: 1. Make sure the virtual machine you are using for reference images never connects to Internet. 2. Prior to run sysprep, have the task sequence delete all uppdated packages using PowerShell To delete a package, use the following PowerShell command: # Delete a package Get-AppxPackage –Name *Insider* | Remove-AppxPackage
-
@george1421 The only reason for connecting to the internet is to run updates and get Adobe software, etc.
-
@george1421 I am going to start from scratch and see if I can work around this.
-
@John-Johnson Just as a recommendation, for windows updates use a 2012 wsus server. And for adobe updates download them to a flash drive so you can install them. It sounds like you are building your reference image manually using audit mode?
-
@John-Johnson I ran into a similar error.
This answer is similar to the other’s but I had to run the following powershell script on every local user to get sysprep to work.$AppsList = "Microsoft.Bing" , "Microsoft.BingFinance" , "Microsoft.BingMaps" , "Microsoft.BingNews"` , "Microsoft.BingSports" , "Microsoft.BingTravel" , "Microsoft.BingWeather" , "Microsoft.Camera"` , "microsoft.microsoftskydrive" , "Microsoft.Reader" , "microsoft.windowscommunicationsapps"` , "microsoft.windowsphotos" , "Microsoft.XboxLIVEGames" , "Microsoft.ZuneMusic"` , "Microsoft.ZuneVideo" , "Microsoft.Media.PlayReadyClient" ForEach ($App in $AppsList) { $PackageFullName = (Get-AppxPackage $App).PackageFullName if ((Get-AppxPackage $App).PackageFullName) { Write-Host "Removing Package: $App" remove-AppxProvisionedPackage -online -packagename $PackageFullName remove-AppxPackage -package $PackageFullName } else { Write-Host "Unable to find package: $App" } }
See this post for more info
https://forums.fogproject.org/topic/5873/windows-10-unattend-xml-sysprep-answer-file-challenge/15 -
@george1421 I am actually building the image on the computer model we will use it on. We have several different models. I had no issues with Windows 7 but Windows 10 has been a struggle.
-
@Arrowhead-IT This actually worked for me!
-
@george1421 This worked. Arrowhead IT suggested the same.
-
@John-Johnson just for clarity the power shell script that ArrowHead-IT posted (same as what I posted only through the link) corrected your issue? You were able to update your win10 with all of the updates from the internet and you applied the adobe updates? I just want to ensure your workflow was the same and the only thing you changed was the powershell script.
-
@george1421 said in Windows 10 sysprep error.:
@John-Johnson just for clarity the power shell script that ArrowHead-IT posted (same as what I posted only through the link) corrected your issue? You were able to update your win10 with all of the updates from the internet and you applied the adobe updates? I just want to ensure your workflow was the same and the only thing you changed was the powershell script.
Yes. I was able to lift my image to fog by using powershell as the user and removing the offending apps.
-
I would say this topic is solved and I appreciate the support.
-
I apologize for not responding for a while. I did find a solution to this. I simply made an account that I knew I would remove later. I loaded everything I needed under that account. After I was finished I created the account I wanted to keep and removed the other. All the Microsoft apps went with it. This works for me and I hope it helps…