Last active
February 3, 2016 06:38
-
-
Save trodemaster/a022fc0228ea4a83eb04 to your computer and use it in GitHub Desktop.
remove 3rd party apps that bork sysprep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove troublesome 3rd party app store apps that cause sysprep to fail | |
if ([Environment]::OSVersion.Version -ge (new-object 'Version' 10,0)) | |
{ | |
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online | |
Get-AppxPackage -AllUsers | Remove-AppxPackage | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment