Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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
You can’t perform that action at this time.