Screenconnect commandline: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
<syntaxhighlight lang="powershell" line='line'>Set-ExecutionPolicy RemoteSigned</syntaxhighlight> | <syntaxhighlight lang="powershell" line='line'>Set-ExecutionPolicy RemoteSigned</syntaxhighlight> | ||
==Show Processes Names Like | ==Show Processes Names Like X== | ||
<syntaxhighlight lang="powershell" line="line">Get-Process sam* | Select-object name</syntaxhighlight> | <syntaxhighlight lang="powershell" line="line">Get-Process sam* | Select-object name</syntaxhighlight> | ||
Revision as of 20:26, 13 March 2020
CLI Notes
There exist a few ways to issue CLI commands in ScreenConnect / Connectwise Control.
- Right-Clicking on a session and choosing 'Run Command'
- Clicking on the 'Commands' icon in the right-hand panel
- Right-Clicking on a session, selecting 'Join With Options' and then selecting 'Backstage'
Enable Remote Execution
Set-ExecutionPolicy RemoteSigned
Show Processes Names Like X
Get-Process sam* | Select-object name
Test if Service is Running
(Get-Service -Name 'Spooler').Status -eq 'Running'
Show Drives and Space Usage
get-psdrive -psprovider filesystem
Create a Desktop shortcut to a folder
$TargetFile = "C:\scan\"
$ShortcutFile = "$env:Public\Desktop\folder.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.Save()