Remove-ProvisionedAppsCurrentUser.ps1 (listed) 14.11.2018 10:29:54 (71 lines) [Edit] [Raw] [View]

PoSh Script from http://www.gp-pack.com, http://www.gruppenrichtlinien.de

Author Mark Heitbrink

MS 1709, Privacy and Telemetry

This is a collected list of APPS from different Windows 10 Editions, List generated like this:

Get-AppxPackage -allusers | where {$.installlocation -like 'windowsapps' -and $.name -notlike 'native'} | where {$_.name -notlike 'vclibs'} | ft name

Possible incomplete list. Feel free to extend the Script.

You can add this script to group policy user login script section of a GPO.

A simple procedure of RunOnce is integrated, without Error handling and without check, if APP exist.

The philosophie is the same like in the whole gp-pack PaT: All Apps possible are removed.

Exclude the ones you like to keep by removing the line or uncomment with a '#'

Some Remove-AppxPackage lines will give Errors, because the APP can not be removed on userbase.

In this case the entry exist for compatibility reasons to the "Remove-ProvisionedAppsNewUser.ps1" script.

Same content/Same Apps is easier to handle.

To run the script a secound time simply delete %userprofile%\RemovedApps.txt file.

To add an accidently remove APP, restore it like this:

Add-AppxPackage -register "C:\Program Files\WindowsApps\Microsoft.WindowsFeedbackHub_1.3.1741.0neutral~_8wekyb3d8bbwe\AppxMetadata\AppxBundleManifest.xml" -DisableDevelopmentMode

if (-not (Test-Path $env:USERPROFILE\RemovedApps.txt)) { Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage Get-AppxPackage Microsoft.DesktopAppInstaller | Remove-AppxPackage Get-AppxPackage Microsoft.GetHelp | Remove-AppxPackage Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage Get-AppxPackage Microsoft.Microsoft3DViewer | Remove-AppxPackage Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage Get-AppxPackage Microsoft.MSPaint | Remove-AppxPackage Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage Get-AppxPackage Microsoft.People | Remove-AppxPackage Get-AppxPackage Microsoft.Print3D | Remove-AppxPackage Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage Get-AppxPackage Microsoft.StorePurchaseApp | Remove-AppxPackage Get-AppxPackage Microsoft.Wallet | Remove-AppxPackage Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage Get-AppxPackage Microsoft.WindowsStore | Remove-AppxPackage Get-AppxPackage Microsoft.Xbox.TCUI | Remove-AppxPackage Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage Get-AppxPackage Microsoft.XboxGameOverlay | Remove-AppxPackage Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage Get-AppxPackage Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage Get-AppxPackage Facebook.Facebook | Remove-AppxPackage Get-AppxPackage Microsoft.MinecraftUWP | Remove-AppxPackage Get-AppxPackage king.com.CandyCrushSodaSaga | Remove-AppxPackage Get-AppxPackage Microsoft.Services.Store.Engagement | Remove-AppxPackage Get-AppxPackage Microsoft.Services.Store.Engagement | Remove-AppxPackage Get-AppxPackage A278AB0D.MarchofEmpires | Remove-AppxPackage Get-AppxPackage 9E2F88E3.Twitter | Remove-AppxPackage Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage Get-AppxPackage Microsoft.Advertising.Xaml | Remove-AppxPackage Get-AppxPackage Microsoft.Advertising.Xaml | Remove-AppxPackage $date=get-date Write "Removed a lot of Apps for current user on $date" | Out-File $env:USERPROFILE\RemovedApps.txt }