Category filter

PowerShell script to update drivers on Windows devices

Outdated drivers can cause your Windows devices to run slowly and impact their overall performance. Driver updates can enhance the user experience by fixing bugs and other security issues associated with the older version. The PowerShell script below will download and install any pending driver updates on your Windows device. Using Hexnode’s Execute Custom Script action, you can remotely run custom scripts on your Windows devices without any manual intervention.


The Sample Scripts provided below are adapted from third-party Open-Source sites.

Download and install updates for drivers

This PowerShell script will download and install all the available driver updates for the Windows device from the Microsoft Update Catalog.

The script will return an output containing the updated drivers’ information on successfully updating them. If no driver updates are available on the Windows device, executing the PowerShell script will return the output: “No pending driver updates.”


  • 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