Category filter

Script to list installed applications on Windows devices

Fetching a list of all installed apps on a device helps administrators have a bird’s eye view of all the apps being accessed by a user on the corporate device as well as identify any apps that the user may be lacking. This can also help identify potentially hazardous applications that may threaten the system. The PowerShell script will fetch a list of all the apps installed on the device. With Hexnode UEM, you can remotely deploy custom scripts to your enrolled Windows devices using the Execute Custom Script action.

Disclaimer:

The sample scripts provided below are adapted from third-party open-source sites.

PowerShell Script

List installed applications

This will list all installed applications across all users on the device.

You can also fetch other details pertaining to applications such as package name by adding a parameter to the script.

Similarly, you can also fetch versions of all the listed applications, by modifying the parameter.

List installed applications for a specific user

You can also fetch the list of installed applications for a specific user account by using –user parameter.

Specify the username for the user account for which you want to list installed applications. For example, for a user account named admin, use the following command.

Get-AppxPackage –user admin | Select Name

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository