List of Functions • Examples • Install • Contribute • Submit a Bug • Request a Feature
This is a fork of @christaylorcodes CWC API module. It also includes some updates from @Luke-Williams9 and @twistedpro, so thanks to all those guys. This module makes it easy to leverage PowerShell Core to automate tasks in ConnectWise Control. Please see the original project for any further details.
The module can be installed by unzipping the master zip into your PowerShell modules folder, or by running the following:
# Define the module name and URL
$moduleName = "ConnectWiseControlAPI"
$moduleUrl = "https://raw.githubusercontent.com/Jcblmao/ConnectWiseControlAPI/master/ConnectWiseControlAPI/ConnectWiseControlAPI.psm1"
# Define the path to save the module
$modulePath = "$env:USERPROFILE\Documents\PowerShell\Modules\$moduleName"
# Create the directory if it doesn't exist
if (!(Test-Path -Path $modulePath)) {
New-Item -ItemType Directory -Path $modulePath | Out-Null
}
# Download the module file
Invoke-WebRequest -Uri $moduleUrl -OutFile "$modulePath\$moduleName.psm1"
# Import the module
Import-Module "$modulePath\$moduleName.psm1"-
Now supports MFA! - Connecting with MFA
-
Requires your Control server to use https.
