Skip to main content

PowerShell Version AuditUpdate

Purpose

This solution uses custom tasks, device groups, and a custom monitor to manage and upgrade PowerShell to version 5 for all Windows devices in the RMM.

Associated Content

ContentTypeFunction
CW RMM - Custom Field - PowerShell VersionCustom FieldStores PowerShell version information, including the "success/failure" status that determines if the machine is on PowerShell 5 or not.
CW RMM - Device Groups - PowerShell VersionDevice GroupThe device groups are used to report on devices that have not been audited, are < PowerShell 5, and > PowerShell 5. The PowerShell audit pending device group is used as the default target for the PowerShell version information audit script.
CW RMM - Task - PowerShell Version InformationTaskGathers the PowerShell version and writes a success/failure note based on the PowerShell version of the device. If the target device is under PowerShell 5, it will write "failure" in the custom field. If the target device is over PowerShell 5, it will write "success" in the custom field.
CW RMM - Task - PowerShell Version UpdateTaskThis task will attempt to upgrade the target device to PowerShell version 5.
CW RMM - Custom Monitor - PowerShell VersionMonitorThis monitor reviews the custom field for "Success" or "Failure" and will trigger the PowerShell Version Update script if the machine is less than PowerShell 5.

Implementation

  1. Create the custom field. This step is required before the rest of the steps will work as expected.
    Follow the documentation here: CW RMM - Custom Field - PowerShell Version

  2. Create the device groups. This step is required before creating the tasks; otherwise, they will not have a proper target.
    Follow the documentation here: CW RMM - Device Groups - PowerShell Version

  3. Create the PowerShell audit task.
    Follow the documentation here: CW RMM - Task - PowerShell Version Information
    Please ensure that the task is scheduled per the above documentation!

  4. Create the PowerShell update task.
    Follow the documentation here: CW RMM - Task - PowerShell Version Update

  5. Create the custom monitor.
    Follow the documentation here: CW RMM - Custom Monitor - PowerShell Version
    Please ensure that the task is scheduled as the Automation Task on the monitor.

FAQ