List of Functions • Examples • Install • Contribute • Submit a Bug • Request a Feature
This is a fork of ChrisTaylorCodes' CWC API module. I got tired of waiting for him to add MFA support so I did it myself. This module makes it easy to leverage PowerShell to automate tasks in Control. Please see his original project for any further details.
The module can be installed by unzipping the master zip into one of your powershell modules folder, or by running the following one-liner:
$ModuleName='ConnectWiseControlAPI';$parentFldr='ConnectWiseControlAPI-master';$u='https://github.com/Luke-Williams9/ConnectWiseControlAPI/archive/refs/heads/master.zip';If($IsWindows){$s=';'}else{$s=':'};$mp=($Env:PSModulePath.split($s) -like "$HOME*")[0];$td='.'+$ModuleName+'_temp';$tempdir=Join-Path '~' $td;$z=Join-Path $tempdir ($ModuleName + '.zip');New-Item -path '~' -name $td -type 'directory' -ErrorAction SilentlyContinue;Invoke-WebRequest -Uri $u -OutFile $z;Expand-Archive $z -DestinationPath $tempdir -Force;New-Item -path $mp -name $ModuleName -ItemType 'directory' -ErrorAction SilentlyContinue;Copy-Item (Join-Path $tempdir $parentFldr $moduleName) -Destination $mp -Force -Recurse;Get-Module -listAvailable $ModuleName-
Now supports MFA! - Connecting with MFA
-
Requires your Control server to use https.
