From 1d54b4ad4866ddfa55bea5c27aa5fbdd5376ebcb Mon Sep 17 00:00:00 2001 From: Paolo Matarazzo <74918781+paolomatarazzo@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:58:26 -0500 Subject: [PATCH] Update ms.date in find-aumid.md --- windows/configuration/kiosk/find-aumid.md | 138 ++++++---------------- 1 file changed, 33 insertions(+), 105 deletions(-) diff --git a/windows/configuration/kiosk/find-aumid.md b/windows/configuration/kiosk/find-aumid.md index 6034bb8f4e..f0eff89a05 100644 --- a/windows/configuration/kiosk/find-aumid.md +++ b/windows/configuration/kiosk/find-aumid.md @@ -2,7 +2,7 @@ title: Find the Application User Model ID of an installed app description: Learn how to find the Application User Model ID (AUMID) of the appications installed on a Windows device. ms.topic: how-to -ms.date: 02/05/2023 +ms.date: 02/06/2024 --- # Find the Application User Model ID of an installed app @@ -10,7 +10,7 @@ ms.date: 02/05/2023 Windows uses Application User Model Id (AUMID, also known as AppId) values to identify and differentiate applications for switching, launching, telemetry, and other functions.\ AUMID are unique to each installed application, and independent of the installation path or the application's display name. -To configure Assigned Access, you must use the AUMID of the apps installed on a device. This article describes how to find the AUMID of an installed app. +To configure Assigned Access, which is the Configuration Service Provider (CSP) used to create a kiosk or dedicated device, you must use the AUMID of the apps installed on a device. This article describes how to find the AUMID of an installed application. ## How to find the AUMID @@ -18,15 +18,18 @@ You can find an application's AUMID by using Windows PowerShell, File Explorer, Follow the instructions to retrieve AUMIDs, selecting the tool of your choice. -#### [:::image type="icon" source="../images/icons/powershell.svg"::: **PowerShell**](#tab/ps) +# [:::image type="icon" source="../images/icons/powershell.svg"::: **PowerShell**](#tab/ps) -To get the names and AUMIDs for all apps installed for the current user, open a Windows PowerShell command prompt and enter the following command: +To get the names and AUMIDs for all apps that appear in the Start menu, open a Windows PowerShell command prompt and enter the following command: ```powershell Get-StartApps ``` -To get the names and AUMIDs for Windows Store apps installed for another user, open a Windows PowerShell command prompt and enter the following commands: +>[!NOTE] +>Applications that are not listed in the Start menu will not appear in the output of the **Get-StartApps** cmdlet. + +To get the names and AUMIDs for Windows Store apps installed for the current user, open a Windows PowerShell command prompt and enter the following commands: ```powershell $installedapps = Get-AppxPackage @@ -43,111 +46,13 @@ foreach ($app in $installedapps) $aumidList ``` -You can add the `-user ` or the `-allusers` parameters to the **Get-AppxPackage** cmdlet to list AUMIDs for other users. You must use an elevated Windows PowerShell prompt to use the `-user` or -`allusers` parameters. - - - -#### [:::image type="icon" source="../images/icons/explorer.svg"::: **Explorer**](#tab/explorer) - -Start.Run… shell:appsfolder to open File Explorer on the AppsFolder. - -To get the names and AUMIDs for all apps installed for the current user, perform the following steps: - -1. Select **Start** > **Run**, enter `shell:Appsfolder`, and select **OK** -1. A File Explorer window opens. Press Alt+V > **Choose details** -1. In the **Choose Details** window, select **AppUserModelId**, and then select **OK**. (You might need to c -1. Change the **View** setting from **Tiles** to **Details** - -:::image type="content" source="images/aumid-file-explorer.png" alt-text="Screenshot of the File Explorer showing the AUMID details." border="false"::: - -#### [:::image type="icon" source="../images/icons/registry.svg"::: **Registry**](#tab/registry) - -Querying the registry can only return information about Microsoft Store apps that are installed for the current user, while the Windows PowerShell query can find information for any account on the device. - -At a command prompt, type the following command: - -```cmd -reg query HKEY_CURRENT_USER\Software\Classes\ActivatableClasses\Package /s /f AppUserModelID | find "REG_SZ" -``` - ---- +> [!NOTE] +> You can add the `-user ` or the `-allusers` parameters to the `Get-AppxPackage` cmdlet to list AUMIDs for other users. You must use an elevated Windows PowerShell prompt to use the `-user` or -`allusers` parameters. ### Example to get AUMIDs of the installed apps for the specified user The following code sample creates a function in Windows PowerShell that returns an array of AUMIDs of the installed apps for the specified user. -```powershell -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've created it. - -```powershell -# 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") -``` - ### Example to get the AUMID of any application in the Start menu The following code sample creates a function in Windows PowerShell that returns the AUMID of any application currently listed in the Start menu. @@ -184,3 +89,26 @@ Get-AppAUMID -AppName Word # List all apps and their AUMID in the Start menu Get-AppAUMID ``` + +# [:::image type="icon" source="../images/icons/explorer.svg"::: **Explorer**](#tab/explorer) + +To get the names and AUMIDs for all apps installed for the current user, perform the following steps: + +1. Select **Start** > **Run**, enter `shell:Appsfolder`, and select **OK** +1. A File Explorer window opens. Press Alt+V > **Choose details** +1. In the **Choose Details** window, select **AppUserModelId**, and then select **OK**. (You might need to c +1. Change the **View** setting from **Tiles** to **Details** + +:::image type="content" source="images/aumid-file-explorer.png" alt-text="Screenshot of the File Explorer showing the AUMID details." border="false"::: + +# [:::image type="icon" source="../images/icons/registry.svg"::: **Registry**](#tab/registry) + +Querying the registry can only return information about Microsoft Store apps that are installed for the current user, while the Windows PowerShell query can find information for any account on the device. + +At a command prompt, type the following command: + +```cmd +reg query HKEY_CURRENT_USER\Software\Classes\ActivatableClasses\Package /s /f AppUserModelID | find "REG_SZ" +``` + +---