Skip to main content

PowerShell Version Update

Summary​

This task will update the PowerShell version to PowerShell 5 if it is not already updated.

Manual Run​

This script does not have any parameters and can be run against any online Windows device.

Dependencies​

None. This script can be run against any Windows device.

Create Script​

To implement this script, please create a new "PowerShell" style script in the system.

Image 1 Image 2

Name: PowerShell Update
Description: This task will update the PowerShell version to PowerShell 5 if it is not already updated.
Category: Updates

Image 3

Script​

Image 4

Paste the PowerShell script below directly into the "Script" field.

PowerShell Script

Script Deployment​

The script is intended to run from the PowerShell Version monitor as the "Run Automated Task."

This script can also run manually against any Windows-based device.

Output​

  • Script log

Changelog​

2025-04-10​

  • Initial version of the document