The Get-AppxPackage command is a Windows PowerShell command that is used to retrieve information about the Universal Windows Platform (UWP) applications installed on a Windows 10 device. It is a useful tool for IT administrators who need to manage the applications installed on their organization’s systems. This article will provide an overview of the Get-AppxPackage command, including its syntax, parameters, inputs, outputs, examples, and tips.

Syntax of Get-AppxPackage

The syntax of the Get-AppxPackage command is as follows:

Get-AppxPackage [-Name] <String> [-AllUsers] [-Publisher <String>] [-PackageFamilyName <String>] [-PackageUserInformation] [-User <String>] [-Online] [<CommonParameters>]

Parameters of Get-AppxPackage

The Get-AppxPackage command has the following parameters:

Parameter Description
-Name <String> Specifies the name of the application to be retrieved.
-AllUsers Retrieves information about all applications installed for all users on the device.
-Publisher <String> Specifies the name of the publisher of the application to be retrieved.
-PackageFamilyName <String> Specifies the package family name of the application to be retrieved.
-PackageUserInformation Retrieves information about the user who installed the application.
-User <String> Specifies the name of the user whose applications are to be retrieved.
-Online Retrieves information about applications installed from the Windows Store.

Inputs of Get-AppxPackage

The Get-AppxPackage command has the following inputs:

  • Name of the application to be retrieved.
  • Name of the publisher of the application to be retrieved.
  • Package family name of the application to be retrieved.
  • Name of the user whose applications are to be retrieved.

Outputs of Get-AppxPackage

The Get-AppxPackage command has the following outputs:

  • Name of the application.
  • Publisher of the application.
  • Package family name of the application.
  • Package full name of the application.
  • Package version of the application.
  • Package status of the application.
  • Package architecture of the application.
  • Package resource ID of the application.
  • Package user information of the application.

Examples of Get-AppxPackage

The following example retrieves information about all applications installed for all users on the device:

Get-AppxPackage -AllUsers

The following example retrieves information about the application with the name “Microsoft.WindowsStore”:

Get-AppxPackage -Name Microsoft.WindowsStore

The following example retrieves information about the application with the package family name “Microsoft.WindowsStore_8wekyb3d8bbwe”:

Get-AppxPackage -PackageFamilyName Microsoft.WindowsStore_8wekyb3d8bbwe

The following example retrieves information about the application with the publisher “CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US”:

Get-AppxPackage -Publisher “CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US”

The following example retrieves information about the application installed by the user “John”:

Get-AppxPackage -User John

The following example retrieves information about applications installed from the Windows Store:

Get-AppxPackage -Online

Tips for Using Get-AppxPackage

Here are some tips for using the Get-AppxPackage command:

  1. Make sure you have the correct syntax for the command.
  2. Specify the parameters that you need to retrieve the information you are looking for.
  3. Use the -AllUsers parameter to retrieve information about all applications installed for all users on the device.
  4. Use the -PackageUserInformation parameter to retrieve information about the user who installed the application.
  5. Use the -Online parameter to retrieve information about applications installed from the Windows Store.

Conclusion

The Get-AppxPackage command is a useful tool for IT administrators who need to manage the applications installed on their organization’s systems. It can be used to retrieve information about the Universal Windows Platform (UWP) applications installed on a Windows 10 device. This article has provided an overview of the Get-AppxPackage command, including its syntax, parameters, inputs, outputs, examples, and tips.

Leave a Reply