Skip to content

Instantly share code, notes, and snippets.

@atao
Created February 3, 2017 14:49
Show Gist options
  • Save atao/34000b70a031029629fe5f1ed3666728 to your computer and use it in GitHub Desktop.
Save atao/34000b70a031029629fe5f1ed3666728 to your computer and use it in GitHub Desktop.
Windows - Remove Apps For Every User
$appname = @(
"*BingWeather*"
"*ZuneMusic*"
"*ZuneVideo*"
)
ForEach($app in $appname){
Get-AppxPackage -Name $app | Remove-AppxPackage -ErrorAction SilentlyContinue
}
Remove-Item -Path "$env:USERPROFILE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\startup\test.bat" -Force
Remove-Item -Path "$env:USERPROFILE\AppData\local\removeappxpackages.ps1" -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment