Script to continually launch scans

I created a script that checks how many scans are running, then starts a number of scans to keep within a threshold of a pre defined max concurrent scans. It will start a scan for the scan with the oldest last scan date first.

This is suitable for something like task scheduler or PowerShell Universal.

I set this to run every 15 minutes and we have drastically increased our scan cadence without getting any “out of memory” errors or using the scheduling inside Insight VM.