Examples of obtaining Windows app IDs manually

Examples of using manual procedures to obtaining app IDs for Windows apps.

Example: Obtaining the app ID/Package family name (PFN) for a Universal Windows Store App

Sample app: Windows Maps
  1. Navigate to the Windows Store at https://www.microsoft.com/en-us/store/apps/windows.
  2. Enter the name of the app in the search bar. For example, search for Windows Maps.
  3. Copy the URL for Windows Maps. For example, copy the URL https://www.microsoft.com/en-us/store/p/windows-maps/9wzdncrdtbvb. Note the series of letters at the end of the URL. For example, 9wzdncrdtbvb.
  4. In a different tab, paste the following URL https://bspmts.mp.microsoft.com/v1/public/catalog/Retail/Products/<app id>/applockerdata, and then replace <app id> with the series of letters from step 3.
  5. In Edge, the information that you want is displayed. In Internet Explorer, click Open to view the information. The Package Family Name value is displayed on the first line.
  6. The results are displayed in the following format. You can copy packageIdentityName from the results.

    { "packageFamilyName": "Microsoft.WPDiet_8wekyb3d8bbwe", "packageIdentityName": "Microsoft.WPDiet", "windowsPhoneLegacyId": "73c58570-d5a7-46f8-b1b2-2a90024fc29c", "publisherCertificateName": "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" }

    Note: If you want to block an app in a Windows MDM policy (for example, in the Advanced App Compliance section or in a block list), you can get the publisher name information from "publisherCertificateName".

Example: Obtaining an app ID for a Universal Windows Private App

Sample app: Microsoft OneNote
  1. Install the app on any Windows 10+ machine.
  2. Install PowerShell (if PowerShell is not installed already).
  3. Launch PowerShell as the admin.
  4. To view information about an app that you know by name or partially by name, use Get-AppxPackage *<app_name>. You can also use wildcard characters if you do not know the entire name of the app. For example, to view information about OneNote, use Get-AppxPackage *OneNote.
  5. The following information is displayed:
    • Name: Microsoft.Office.OneNote
    • Publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    • Architecture: X64
    • ResourceId:
    • Version: 17.6769.57631.0
    • PackageFullName: Microsoft.Office.OneNote_17.6769.57631.0_x64__8wekyb3d8bbwe
    • InstallLocation: C:\Program Files\WindowsApps \Microsoft.Office.OneNote_17.6769.57631.0_x64__8wekyb3d8bbwe
    • IsFramework: False
    • PackageFamilyName: Microsoft.Office.OneNote_8wekyb3d8bbwe
    • PublisherId: 8wekyb3d8bbwe

Example: Obtaining the GUID for a Windows Store App

To allow or block Windows Phone apps for the Application Compliance policy, you must define the apps list using specific app GUIDs.

Sample app: Windows Maps
  1. Navigate to the Windows Store at https://www.microsoft.com/en-us/store/apps/windows.
  2. Enter the name of the app in the search bar. For example, search for Windows Maps.
  3. Copy the URL for Windows Maps. For example, copy the URL https://www.microsoft.com/en-us/store/p/windows-maps/9wzdncrdtbvb. Note the series of letters at the end of the URL. For example, 9wzdncrdtbvb.
  4. In a different tab, paste the following URL https://bspmts.mp.microsoft.com/v1/public/catalog/Retail/Products/<app id>/applockerdata, and then replace <app id> with the series of letters from step 3.
  5. In Edge, the information that you want is displayed. In Internet Explorer, click Open to view the information. The Package Family Name value is displayed on the first line.
  6. The results are displayed in the following format. You can copy windowsPhoneLegacyId from the results. { "packageFamilyName": "Microsoft.WPDiet_8wekyb3d8bbwe", "packageIdentityName": "Microsoft.WPDiet", "windowsPhoneLegacyId": "73c58570-d5a7-46f8-b1b2-2a90024fc29c", "publisherCertificateName": "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" }

Example: Obtaining the App Name and Publisher ID for Desktop apps

To allow or block Windows Phone apps for the Application Compliance policy, you must define the app list using app names or the publisher ID.

  1. Install the app on a Windows 10+ machine.
  2. Install PowerShell (if PowerShell is not installed already).
  3. Launch PowerShell as the admin.
  4. To view information about the path of an app, use Get-AppLockerFileInformation -Path "<path of the exe/msi>".
    For example: Get-AppLockerFileInformation -Path "C:\Program Files\Internet Explorer\iexplore.exe"
           
    Path AppX Publisher Hash
    %PROGRAMFILES%\INTERNET EXPLORER\IEXPLORE.EXE O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US\INTERNET EXPLORER\IEXPLORE.EXE,11.0.17134.1 SHA256 0x06A0274B5ED7313A1D1FDAF08B1B4CB31BF5B5A5DD3A863BF9D16392EE643FA0 False

    Enter O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US in the Publisher Name field and INTERNET EXPLORER in the App Name field.

    Note: This syntax works for Windows 10+ OS only.
    For example: Get-AppLockerFileInformation -Path "C:\MSI\ProjectMyScreenApp.msi"
           
    Path Publisher Hash AppX
    %OSDRIVE%\USERS\MAYURESHKULKARNI\DOWNLOADS\PROJECTMYSCREENAPP.MSI SHA256 0xDAFBF6308D0BF25EA5F9004A3301CBCA3FF131AA37A395DEFE409D8DC2DBC855 False

    Enter O=MICROSOFT CORPORATION, L=REDMOND, S=WASHINGTON, C=US in the Publisher Name field and PROJECT MY SCREEN APP in the App Name field.

Note: This syntax works for Windows 10+ OS only.

Example: Obtaining the App ID for Win32 apps

  • To obtain the names and App IDs for all the apps that are installed for the current user, open a Windows PowerShell command prompt and enter the following command: Get-StartApps
  • To obtain the names and App IDs or AUMIDs for the Windows Store apps that are installed for another user, open a Windows PowerShell command prompt and enter the following commands:
    $installedapps = Get-AppxPackage
    $aumidList = @() 
    foreach ($app in $installedapps) 
    { 
        foreach ($id in (Get-AppxPackageManifest 
    $app).package.applications.application.id) 
        { 
             $aumidList += $app.packagefamilyname + "!" + $id 
        } 
    } 
    $aumidList

    For more information about obtaining App IDs for Windows apps, see https://learn.microsoft.com/en-us/windows/configuration/find-the-application-user-model-id-of-an-installed-app#to-find-the-aumid-by-using-windows-powershell.