Skip to main content

CWM - Automate -Script - Powershell - Module Check

Summary

This is a function script in ConnectWise Automate that takes a @command@ variable set to a desired command, tests that command on the endpoint, and the script will fail if that command is not recognized.

Sample Run

Function script only.

Variables

Document the various variables in the script. Delete any section that is not relevant to your script.

NameDescription
psoutThe output of the PowerShell command.

User Parameters

NameExampleRequiredDescription
CommandGet-BitLockerVolumeTrueThe command to test on the endpoint.

Output

  • failstatus will be false if this script fails.