Skip to content

Instantly share code, notes, and snippets.

@duboisph
Last active January 30, 2019 17:08
Show Gist options
  • Save duboisph/86fd868ed1185c8d444d78e5655c275f to your computer and use it in GitHub Desktop.
Save duboisph/86fd868ed1185c8d444d78e5655c275f to your computer and use it in GitHub Desktop.
Troubleshoot / restore Windows
sfc /scannow
dism /online /cleanup-image /checkhealth
dism /online /cleanup-image /startcomponentcleanup
dism /online /cleanup-image /restorehealth
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
# Get list of all packages for all users
Get-AppxPackage -AllUsers | Select Name, PackageFullName, InstallLocation
# Remove packages / bloatware from all users
Remove-AppxPackage -AllUsers <PackageFullName>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment