RMMSecurity / ConnectWiseControlPowerShell

This is an attempt at creating a functional ConnectWise Control (ScreenConnect) PowerShell module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This is an attempt at creating a functional ConnectWise Control (ScreenConnect) PowerShell module.

License:MIT License


Languages

Language:PowerShell 100.0%