Updated Get-AppAUMID

This commit is contained in:
djust270 2022-10-12 14:59:15 -04:00
parent 5623edae66
commit 6934aed167

View File

@ -118,7 +118,7 @@ function Get-AppAUMID {
param (
[string]$AppName
)
$Apps = (New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items()
$Apps = (New-Object -ComObject Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items()
if ($AppName){
$Result = $Apps | Where-Object { $_.name -like "*$AppName*" } | Select-Object name,@{n="AUMID";e={$_.path}}
if ($Result){