Rapid7 Insight Agent Update Fix Discover Script
Rapid7 Insight Agent Update Fix Discover Script
Rui Qiu
v1.1
4/3/2018
$folder = “C:\Program Files\Rapid7\Endpoint Agent” if (test-path $folder) { $content = (get-content config.json | where { $_ -match “smart_ttl_start” } )
echo $content
$key = ’ “smart_ttl_start”: 128,‘
echo $key
if ($content -eq $key) {$Compliance = “Yes”} Else {$Compliance = “No”} } else {$Compliance = “Yes”} $Compliance