Find the Application User Model ID of an installed app (Industry 8.1)

7/8/2014

Learn how to find the Application User Model ID (AUMID) of an app installed on your Windows Embedded 8.1 Industry (Industry 8.1) device.

Industry 8.1 features that work with Windows Store apps use the Application User Model ID (AUMID) to identify the app. This topic shows you how to find the AUMID for each installed Windows Store app on a device.

The AUMID format is the package family name followed by an exclamation point and the application ID.

Find the Application User Model ID (AUMID)

You can find the AUMID of Windows Store apps installed on a device by either using Windows PowerShell or querying the registry. Querying the registry can only return information about Windows Store apps that are installed for the current user, while the Windows PowerShell query can find information for any account on the device.

Querying by using Windows PowerShell does not return the AUMID s for web browsers. You can use the following AUMID s to specify a web browser:

  • Internet Explorer: DefaultBrowser_NOPUBLISHERID!Microsoft.InternetExplorer.Default
  • Google Chrome: DefaultBrowser_NOPUBLISHERID!Chrome

To identify the AUMID of an installed app by using Windows PowerShell

  1. At a Windows PowerShell command prompt, type the following commands to list the AUMID s for all Windows Store apps installed for the current user on your device:

    $installedapps = get-AppxPackage
    
    $aumidList = @()
    foreach ($app in $installedapps)
    {
        foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id)
        {
            $aumidList += $app.packagefamilyname + "!" + $id
        }
    }
    
    $aumidList
    

    You can add the –user <username> or the –allusers parameters to the get-AppxPackage cmdlet to list AUMID s for other users. You must use an elevated Windows PowerShell prompt to use the –user or –allusers parameters.

To identify the AUMID of an installed app for the current user by using the registry

  1. At a command prompt, type the following command:

    reg query HKEY_CURRENT_USER\Software\Classes\ActivatableClasses\Package /s /f AppUserModelID | find "REG_SZ"
    

Example

The following code sample creates a function in Windows PowerShell that returns an array of AUMID s of the installed apps for the specified user.

function listAumids( $userAccount ) {

    if ($userAccount -eq "allusers")
    {
        # Find installed packages for all accounts. Must be run as an administrator in order to use this option.
        $installedapps = Get-AppxPackage -allusers
    }
    elseif ($userAccount)
    {
        # Find installed packages for the specified account. Must be run as an administrator in order to use this option.
        $installedapps = get-AppxPackage -user $userAccount
    }
    else
    {
        # Find installed packages for the current account.
        $installedapps = get-AppxPackage
    }

    $aumidList = @()
    foreach ($app in $installedapps)
    {
        foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id)
        {
            $aumidList += $app.packagefamilyname + "!" + $id
        }
    }

    return $aumidList
} 

The following Windows PowerShell commands demonstrate how you can call the listAumids function after you have created it.

# Get a list of AUMIDs for the current account:
listAumids

# Get a list of AUMIDs for an account named “CustomerAccount”:
listAumids(“CustomerAccount”)

# Get a list of AUMIDs for all accounts on the device:
listAumids(“allusers”)

See Also

Concepts

Windows 8 Application Launcher