Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save codaamok/3b4742108ebf80c253bb8678865d499e to your computer and use it in GitHub Desktop.

Select an option

Save codaamok/3b4742108ebf80c253bb8678865d499e to your computer and use it in GitHub Desktop.
If you use the Windows Admins GitHub CI to deprovision some Windows 10 apps you can use this to get all the DisplayName values of only those that are enabled: https://github.com/winadminsdotorg/SystemCenterConfigMgr/blob/master/Compliance%20Settings/CIs/Client%20Configuration/CB%20-%20Deprovisioned%20AppX%20via%20PoSh.cab
Get-CMConfigurationItem | Where-Object { $_.LocalizedDisplayName -like "CI - Deprovisioned AppX -*" -And $_.InUse -eq $true } | Select-Object LocalizedDisplayName,@{Name="AppName";Expression={[Regex]::Matches($_.SDMPackageXML,"\`$_\.DisplayName -Match ('.+')").Groups[1].Value}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment