Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$Applist =
$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.