Skip to main content

PowerShell Version Audit

Summary​

This script obtains the current agent PowerShell version. The script is supported in all versions of PowerShell to collect its version.

Sample Run​

Sample Run

Dependencies​

PowerShell Version Audit

Variables​

NameDescription
psoutThis contains the PowerShell Version

Script States​

NameExampleDescription
PowerShellVersion2022.5.1This contains the PowerShell Version

Process​

This script runs a PowerShell query that is supported by all Windows operating systems and collects the data to the Script State, which replicates to the dataview. It also stores the date when the PowerShell version was last checked.

Output​

  • Script log
  • Script state
  • Dataview

Changelog​

2025-04-10​

  • Initial version of the document