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
Content | Type | Function |
---|---|---|
CW RMM - Custom Field - PowerShell Version | Custom Field | Stores PowerShell version information, including the "success/failure" status that determines if the machine is on PowerShell 5 or not. |
CW RMM - Device Groups - PowerShell Version | Device Group | The 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 Information | Task | Gathers 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 Update | Task | This task will attempt to upgrade the target device to PowerShell version 5. |
CW RMM - Custom Monitor - PowerShell Version | Monitor | This 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
-
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 -
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 -
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! -
Create the PowerShell update task.
Follow the documentation here: CW RMM - Task - PowerShell Version Update -
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.