New
#21
It is all from the tutorial really.
As mentioned earlier in this thread Remove-AppxPackage removes for current user,
Remove-AppxProvisionedPackage removes it for new user and deleting from %localappdata%\Packages deletes any caches for the current user.
It certainly isn't complete. To be complete you would need to name all the apps you want to delete in the $apps array like this:PHP Code:
$apps=
@(
"4DF9E0F8.Netflix"
"9E2F88E3.Twitter"
"A278AB0D.MarchofEmpires"
"ClearChannelRadioDigital.iHeartRadio"
"D52A8D61.FarmVille2CountryEscape"
"Facebook.Facebook"
"Flipboard.Flipboard"
"KeeperSecurityInc.Keeper"
"king.com.CandyCrushSaga"
"king.com.CandyCrushSodaSaga"
"king.com.ParadiseBay"
"HoloCamera"
"HoloItemPlayerApp"
"HoloShell"
"Microsoft.3DBuilder"
"Microsoft.Appconnector"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
#"Microsoft.BingWeather"
"Microsoft.ConnectivityStore"
"Microsoft.CommsPhone"
"Microsoft.Getstarted"
"Microsoft.Messaging"
"Microsoft.Microsoft3DViewer"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.MicrosoftStickyNotes"
"Microsoft.MSPaint"
"Microsoft.Office.OneConnect"
#"Microsoft.Office.OneNote"
"Microsoft.Office.Sway"
"Microsoft.OneConnect"
"Microsoft.People"
"Microsoft.SkypeApp"
"Microsoft.Windows.Phone"
#"Microsoft.Windows.Photos"
"Microsoft.WindowsAlarms"
#"Microsoft.WindowsCalculator"
#"Microsoft.WindowsCamera"
#"Microsoft.WindowsFeedbackApp"
"Microsoft.WindowsMaps"
"Microsoft.WindowsPhone"
"Microsoft.WindowsSoundRecorder"
#"Microsoft.WindowsStore"
"Microsoft.XboxApp"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.XboxGameOverlay"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
#"microsoft.windowscommunicationsapps"
"Microsoft.MinecraftUWP"
"PandoraMediaInc.29680B314EFC2"
"SlingTVLLC.SlingTV"
"ShazamEntertainmentLtd.Shazam"
"Windows.MircastView"
)
Write-Host "Removing default apps" -f yellow
ForEach ($app in $apps) {
Write-Host "Removing " -noNewLine; Write-Host $app -f white
# Need to hide the progress bar as otherwise it remains on the screen
$ProgressPreference="SilentlyContinue"
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
$ProgressPreference="Continue"
Get-AppXProvisionedPackage -Online |
where DisplayName -EQ $app |
Remove-AppxProvisionedPackage -Online
$appPath="$Env:LOCALAPPDATA\Packages\$app*"
Remove-Item $appPath -Recurse -Force -ErrorAction 0
}
It was more a suggestion that you had 3 areas to (consider) deleting.
You could (I suppose) delete stuff from %localappdata% for other users but it would be complicated as you would have to take authority, save ACLs and restore authority back after.
It would probably be easier to just run it for each user than mess with their permissions. Also PowerShell will not let you delete apps for another user - there may be a workaround for multi-user PCs but I don't know it.