Skip to content

jayposton/ConnectWiseControlPowerShell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%