Created
June 13, 2019 10:26
-
-
Save systemcenterblog/9f67ca8cf25dbbd8705c5eced326dcaa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AppBlackList = | |
"Microsoft.3DBuilder_8wekyb3d8bbwe", | |
"Microsoft.BingWeather_8wekyb3d8bbwe", | |
"Microsoft.DesktopAppInstaller_8wekyb3d8bbwe", | |
"Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe", | |
"Microsoft.GetHelp_8wekyb3d8bbwe", | |
"Microsoft.Getstarted_8wekyb3d8bbwe", | |
"Microsoft.Messaging_8wekyb3d8bbwe", | |
"Microsoft.Microsoft3DViewer_8wekyb3d8bbwe", | |
"Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe", | |
"Microsoft.OneConnect_8wekyb3d8bbwe", | |
"Microsoft.People_8wekyb3d8bbwe", | |
"Microsoft.Print3D_8wekyb3d8bbwe", | |
"Microsoft.SkypeApp_kzf8qxf38zg5c", | |
"Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe", | |
"Microsoft.Wallet_8wekyb3d8bbwe", | |
"microsoft.windowscommunicationsapps_8wekyb3d8bbwe", | |
"Microsoft.WindowsMaps_8wekyb3d8bbwe", | |
"Microsoft.XboxApp_8wekyb3d8bbwe", | |
"Microsoft.XboxGameOverlay_8wekyb3d8bbwe", | |
"Microsoft.XboxGamingOverlay_8wekyb3d8bbwe", | |
"Microsoft.XboxIdentityProvider_8wekyb3d8bbwe", | |
"Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe", | |
"Microsoft.Xbox.TCUI_8wekyb3d8bbwe", | |
"Microsoft.YourPhone_8wekyb3d8bbwe", | |
"Microsoft.ZuneMusic_8wekyb3d8bbwe", | |
"Microsoft.ZuneVideo_8wekyb3d8bbwe" | |
$AppWhiteList = | |
"Microsoft.HEIFImageExtension", | |
"Microsoft.MicrosoftStickyNotes", | |
"Microsoft.MixedReality.Portal", | |
"Microsoft.MSPaint", | |
"Microsoft.Office.OneNote", | |
"Microsoft.ScreenSketch", | |
"Microsoft.StorePurchaseApp", | |
"Microsoft.VP9VideoExtensions", | |
"Microsoft.WebMediaExtensions", | |
"Microsoft.WebpImageExtension", | |
"Microsoft.Windows.Photos", | |
"Microsoft.WindowsAlarms", | |
"Microsoft.WindowsCalculator", | |
"Microsoft.WindowsCamera", | |
"Microsoft.WindowsSoundRecorder", | |
"Microsoft.WindowsStore" | |
#====================================================================================== | |
# Remove Appx Packages | |
#====================================================================================== | |
ForEach ($App in $AppBlackList) | |
{ | |
Write-Host "Creating Deprovisioned Regsitry key for PackageName: $App" -ForegroundColor Green | |
New-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\$App" -Force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment