Skip to content

Instantly share code, notes, and snippets.

@2KAbhishek
Created August 6, 2019 02:43
Show Gist options
  • Save 2KAbhishek/4eea119971a0e07b09c9f78200c73a89 to your computer and use it in GitHub Desktop.
Save 2KAbhishek/4eea119971a0e07b09c9f78200c73a89 to your computer and use it in GitHub Desktop.
Powershell Commands for Debloating windows 10
#Remove Apps except store:
Get-AppxPackage -AllUsers | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
#Remove windows apps:
Get-AppxPackage -allusers | Remove-AppxPackage
#Restore Store:
Add-AppxPackage -register "C:\\Program Files\WindowsApps\Microsoft.WindowsStore_11703.1001.45.0_x64__8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode
#Restore all apps :
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment