diff --git a/UWPHook/Resources/GetAUMIDScript.txt b/UWPHook/Resources/GetAUMIDScript.txt index 7813105..61ab628 100644 --- a/UWPHook/Resources/GetAUMIDScript.txt +++ b/UWPHook/Resources/GetAUMIDScript.txt @@ -3,10 +3,15 @@ $aumidList = @() foreach ($app in $installedapps) { -    foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id) -    { -        $aumidList += $app.name + "|" + $app.packagefamilyname + "!" + $id + ";" -    } + try { + foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id) + { + $aumidList += $app.name + "|" + $app.packagefamilyname + "!" + $id + ";" + } + } catch { + $ErrorMessage = $_.Exception.Message + $FailedItem = $_.Exception.ItemName + } } $aumidList \ No newline at end of file