How To: Self-Scan Asset by Command Line
Overview
This document will cover how to run a self-scan on an asset with the CyberCNSAgent service installed but not running.
Prerequisites
Administrator access to PowerShell.
ConnectSecure Agent installed on a remote machine; CyberCNSAgent Service stopped.
Instructions
Windows-based PowerShell
Open PowerShell as Adminstrator.
Change the Directory to the folder where the ‘CyberCNSAgent’ is installed; you can use the command below by copying and pasting.
cd 'C:\Program Files (x86)\CyberCNSAgent\'
Run the command to start a scan; you can use the command below by copying and pasting.
.\cybercnsagent.exe -t run -m scan
You should see some activity on the command line and a message that the self-asset scan has started. Once completed the scan will display ‘ScanLocalAsset: Operation completed’.
Results will be uploaded to the portal.
To stop the CyberCNSAgent service, you can use the below command: copy and paste.
net stop cybercnsagent
Terminal-based Darwin (MacOS)
Launch the terminal and switch to SU
Enter your password
Change the directory to the CyberCNSAgent folder and run the launchctl command
The scan should start, and output should be provided once completed.
Need Support?
Do you need help? You can access our support portal to create, view, and update tickets anytime.
https://cybercns.freshdesk.com
Click below to be directed to our secure support portal or email support@connectsecure.com to open a ticket.
Â