Category filter

PowerShell script to Get HotFix info on Windows devices

This document helps you retrieve information about hotfixes installed on a Windows system using scripts.

Hotfixes are important updates issued by Microsoft to address security vulnerabilities, bug fixes, performance enhancements, or feature improvements. These updates are crucial to keeping systems secure, stable, and optimized. But how do we determine which hotfixes are installed on managed devices?

Get-HotFix is a PowerShell command that retrieves information about the hotfixes (updates or patches) installed on a Windows system. Executing the Get-HotFix command on devices provides a simple and efficient way to gather detailed information about the hotfixes applied to a system, making it essential for troubleshooting, auditing, and inventory management. Using Hexnode’s Execute Custom Script remote action, administrators can execute this PowerShell command on a remote Windows device.

Disclaimer:

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

PowerShell script

This PowerShell script allows admins to retrieve a list of installed hotfixes on a system. The Get-Hotfix command uses the following parameters here in this script:

  1. HotFixID
  2. Description
  3. StartDate

You can follow the steps to access the output of the script.

  1. Login to your Hexnode UEM portal.
  2. Navigate to the Manage tab.
  3. Select the device on which the script was executed.
  4. Go to Action History.
  5. You can find the option Output corresponding to the policy applied.

Retrieving Windows HotFix information using the get hotfix PowerShell command.

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