There will be instances were we onboard a company were the OLD IT had CyberCNS. We want to incorporate the detection of other CyberCNS agents in the detection for CyberCNS.
This can be easily checked if the device has CyberCNS agent you can check the config file for the Company ID with the following code:
$configFile = "C:\Program Files (x86)\CyberCNSAgentV2\agentRegistrationData.json"
$testResult = JsonKey-ShouldBe -Path $configFile -Key "companyid" -Value $cybercnscompanyid
Would it be possible to incorporate for the detection on CyberCNS to reinstall if it doesn’t match?