Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Last active February 3, 2016 06:38
Show Gist options
  • Save trodemaster/a022fc0228ea4a83eb04 to your computer and use it in GitHub Desktop.
Save trodemaster/a022fc0228ea4a83eb04 to your computer and use it in GitHub Desktop.
remove 3rd party apps that bork sysprep
# 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