Last active
February 7, 2020 22:52
-
-
Save amar-r/5d6a1781ee0f405d3daec4d877b46171 to your computer and use it in GitHub Desktop.
This file contains 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
$Applist = | |
'3DViewer', | |
'FeedbackHub', | |
'GetHelp', | |
'GetStarted', | |
'Maps', | |
'Messaging', | |
'MixedReality.Portal', | |
'OfficeHub', | |
'OneConnect', | |
'People', | |
'SolitaireCollection', | |
'Wallet', | |
'Xbox.TCUI', | |
'XboxApp', | |
'XboxGameOverlay', | |
'XboxGamingOverlay', | |
'XboxIdentityProvider', | |
'XboxSPeechToTextOverlay', | |
'YourPhone', | |
'ZuneMusic', | |
'ZuneVideo', | |
'communicationsapps', | |
'BingWeather' | |
$Counter = 0 | |
Foreach ($App in $Applist) { | |
# Uncomment line below to remove the apps | |
#Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -match $App} | Remove-AppxProvisionedPackage -Online -AllUsers | Out-Null | |
If (Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -match $App }) { $counter++ } | |
} | |
if ($Counter -gt 0) { $false } Else { $true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment