Skip to content

Get Windows app properties

This page describes how to get some of the properties of a Windows app that you must enter when you add the app to Sophos Mobile. See App settings (Windows).

Package Family Name

To get an app’s Package Family Name (PFN), install it on a Windows computer and run the Get-AppxPackage PowerShell command.

To do this, do as follows:

  1. On a Windows 10 or Windows 11 computer, go to Microsoft Store and install the app.
  2. Open Windows PowerShell and enter the following command:

    PS> Get-AppxPackage <app_name>
    

    Replace <app_name> with the name of the app package.

    If you don’t know the name, use the * wildcard character with part of the name. For example, enter Get-AppxPackage *onenote to get information about Microsoft OneNote. You can also enter Get-AppxPackage * to get information about all the apps installed on the computer.

  3. The Get-AppxPackage shows you information about the app, including its Package Family Name.

    For example, Get-AppxPackage shows the following output for OneNote:

    PS> Get-AppxPackage *onenote
    
    Name              : Microsoft.Office.OneNote
    Publisher         : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
    Architecture      : X64
    ResourceId        :
    Version           : 16.14326.22093.0
    PackageFullName   : Microsoft.Office.OneNote_16.14326.22093.0_x64__8wekyb3d8bbwe
    InstallLocation   : C:\Program Files\WindowsApps\Microsoft.Office.OneNote_16.14326.22093.0_x64__8wekyb3d8bbwe
    IsFramework       : False
    PackageFamilyName : Microsoft.Office.OneNote_8wekyb3d8bbwe
    PublisherId       : 8wekyb3d8bbwe
    IsResourcePackage : False
    IsBundle          : False
    IsDevelopmentMode : False
    NonRemovable      : False
    Dependencies      : {Microsoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe}
    IsPartiallyStaged : False
    SignatureKind     : Store
    Status            : Ok
    
  4. The value next to PackageFamilyName is the app’s Package Family Name.

    In this example, the Package Family Name is Microsoft.Office.OneNote_8wekyb3d8bbwe.

For more information on the Get-AppxPackage command, see Get-AppxPackage.

ProductCode GUID

If you already have the Microsoft Windows SDK installed, use the included Orca program to get the ProductCode value of an MSI file. For an example, see the description on the web page Use Orca to find MSI file GUID product code.

Alternatively, use a PowerShell script. Such scripts can be found on the internet, for example on the web page How to get MSI file information with PowerShell.

Note

The value you enter in the ProductCode GUID field must not include surrounding brackets.

SHA-256 file hash

Use the Get-FileHash PowerShell command to get the SHA-256 hash value of an MSI file:

PS> Get-FileHash <Path-to-MSI-file>

For more information on the Get-FileHash command, see Get-FileHash.

Installation options

For information on the available command-line options for installing MSI files, see Microsoft Standard Installer Command-Line Options.