Category filter
Script to get Application User Model ID (AUMID) of installed apps
To set up kiosk, you need to obtain the Application User Model ID (AUMID) of the installed applications on the device. Simplify this process by utilizing the provided Windows PowerShell script in this document, which can be efficiently distributed to multiple devices using the Execute Custom Script feature.
PowerShell script
The script below retrieves the application user model IDs (AUMIDs) for applications stored in specific locations on the system. It searches for AUMIDs in the directories C:\Program Files\WindowsApps\*, C:\Windows\SystemApps\*, and C:\Windows\*.
The script iterates through each application folder and locates the AppxManifest.xml file within it. It extracts the AUMID information from the “Application” nodes in the XML file. If an AUMID is found, it is combined with the corresponding application name and added to a dictionary.
Finally, the script displays the dictionary entries, showing the application names and their corresponding AUMIDs using the Name and Value properties.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
$allApps = Get-ChildItem "C:\Program Files\WindowsApps\*", "C:\Windows\SystemApps\*", "C:\Windows\*" $aumidList = @{} foreach ($appFolder in $allApps) { $appxManifest = $appFolder.FullName + "\AppxManifest.xml" if(Test-Path $appxManifest) { $xml = [xml](Get-Content $appxManifest) $aumidNodes = $xml.GetElementsByTagName("Application") foreach ($aumidNode in $aumidNodes) { if($aumidNode.Id) { $appName = ($appFolder.Name -split "_.*__") if($appName[1]) { $newName = $appName[0] + '_' + $appName[1] } else { $newName = $appName[0] } $aumid = $newName + "!" + $aumidNode.Id $aumidList[$newname] = $aumid } } } } $aumidList | fl -Property Name, Value |