Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.11 KB

File metadata and controls

50 lines (31 loc) · 1.11 KB

This is a PowerShell wrapper for the ConnectWise Control API. https://docs.connectwise.com/ConnectWise_Control_Documentation/Developers/Session_Manager_API_Reference

irm 'https://bit.ly/controlposh' | iex

example:

# Your Control server URL
$Server = 'https://control.domain.com'

# Get Control credentials
$Credentials = Get-Credential

# Load module into memory
irm 'https://bit.ly/controlposh' | iex

# Splat
$CWCInfo = @{
    Server = $Server
    Credentials = $Credentials
}

# Find this machine in Control
$Computer = Get-CWCSessions @CWCInfo -Type Access -Search $env:COMPUTERNAME -Limit 1

if(!$Computer) {return "Computer not found"}

# Get the machines last contact
Get-CWCLastContact @CWCInfo -GUID $Computer.SessionID

Functions

Get-CWCLastContact

Get-CWCSessions

Invoke-CWCCommand

Invoke-CWCWake

Remove-CWCSession

Update-CWCSessionName