Skip to content

Instantly share code, notes, and snippets.

@amar-r
Last active February 7, 2020 22:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amar-r/5d6a1781ee0f405d3daec4d877b46171 to your computer and use it in GitHub Desktop.
Save amar-r/5d6a1781ee0f405d3daec4d877b46171 to your computer and use it in GitHub Desktop.
$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