SightUp said: View Post
This is something new. What does it do specifically? Is that complete?
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:

Write-Host "Removing default apps" -f yellow
ForEach ($app in $apps) {    
Write-Host "Removing " -noNewLineWrite-Host $app -f white

# Need to hide the progress bar as otherwise it remains on the screen            
Get-AppxPackage -Name $app -AllUsers Remove-AppxPackage

Get-AppXProvisionedPackage -Online |
where DisplayName -EQ $app |
Remove-AppxProvisionedPackage -Online
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.