Datto RMM- Agent Installation Scripts for Windows
Datto RMM- Agent Installation Scripts for Windows
CyberCNS Lightweight Agent Installation Script for Windows.
Please use your CyberCNS Domain/tenant name in the CyberCNS Agent download link mentioned in the script as shown below:
cybercnstenant should be learn for CyberCNS Domain/tenant name learn
The script used for CyberCNS SaaS:
Note: Powershell script for new infrastructure: ( this script has changed the agent download URL which is suitable for new infrastructure)
The script used for CyberCNS On Premise ( Self hosted):
$serviceName = '*cybercns*'
if (!$env:cybercnscompanyid)
{
return "$env:cybercnscompanyid is NULL"
}
if (!$env:cybercnsclientid)
{
return "$env:cybercnsclientid is NULL"
}
if (!$env:cybercnsclientsecret)
{
return "$env:cybercnsclientsecret is NULL"
}
if (!$env:cybercnsdomain)
{
return "$env:cybercnsdomain is NULL"
}
If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
If ((Get-Service $serviceName).Status -eq 'Running') {
return "$serviceName found and running."
} Else {
return "$serviceName found, but it is not running."
}
} Else {
Write-Host "Downloading http://domain.mycybercns.com/agents/ccnsagent/cybercnsagent.exe"
$source = (Invoke-RestMethod -Method 'Get' -URI "https://configuration.mycybercns.com/api/v3/configuration/agentlink?ostype=windows")
$destination = 'cybercnsagent.exe'
Invoke-WebRequest -Uri $source -OutFile $destination
./cybercnsagent.exe -c $env:cybercnscompanyid -a $env:cybercnsclientid -s $env:cybercnsclientsecret -b $env:cybercnsdomain -i LightWeight
}
CyberCNS Probe Agent Installation Script for Windows
Note: Powershell script for new infrastructure: ( this script has changed agent download URL which is suitable for new infrastructure)
The script used for CyberCNS V3:
The script used for CyberCNS On Premise ( Self Hosted):
$serviceName = '*cybercns*'
if (!$env:cybercnscompanyid)
{
return "$env:cybercnscompanyid is NULL"
}
if (!$env:cybercnsclientid)
{
return "$env:cybercnsclientid is NULL"
}
if (!$env:cybercnsclientsecret)
{
return "$env:cybercnsclientsecret is NULL"
}
if (!$env:cybercnsdomain)
{
return "$env:cybercnsdomain is NULL"
}
If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
If ((Get-Service $serviceName).Status -eq 'Running') {
return "$serviceName found and running."
} Else {
return "$serviceName found, but it is not running."
}
} Else {
Write-Host "Downloading http://domain.mycybercns.com/agents/ccnsagent/cybercnsagent.exe"
$source=(Invoke-RestMethod -Method 'Get' -URI "https://configuration.mycybercns.com/api/v3/configuration/agentlink?ostype=windows")
$destination = 'cybercnsagent.exe'
Invoke-WebRequest -Uri $source -OutFile $destination
./cybercnsagent.exe -c $env:cybercnscompanyid -a $env:cybercnsclientid -s $env:cybercnsclientsecret -b $env:cybercnsdomain -i Probe
}
, multiple selections available,
Related content
Datto RMM- Agent Installation Scripts for Linux
Datto RMM- Agent Installation Scripts for Linux
More like this
Datto RMM- Agent Installation Scripts for MacOS
Datto RMM- Agent Installation Scripts for MacOS
More like this
Kaseya VSA- Agent Installation Scripts for Windows
Kaseya VSA- Agent Installation Scripts for Windows
More like this
Kaseya VSA- Agent Installation Scripts for Mac
Kaseya VSA- Agent Installation Scripts for Mac
More like this
Agent Command Line Options
Agent Command Line Options
More like this
Install CyberCNS Agent MSI using GPO
Install CyberCNS Agent MSI using GPO
More like this