For testing purposes it is often necessary to restart the services in order to collect data or when troubleshooting. This is done by ensuring there is no entry on the ‘LastScheduledActionCompleted’ registry key and then restarting the Data Collector service this will then prompt the start of the “ExecuteDCs.ps1” script.
This can also be achieved by running the below lines of code in a Batch (*.bat) file with administrator privileges.
@echo off
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\BrainWare\Columbus\7\OTB\Client /v LastScheduledActionCompleted /f
NET STOP SpiderDataCollectorService
NET START SpiderDataCollectorService
"C:\Program Files (x86)\Gurock Software\SmartInspect Redistributable Console\SmartInspectConsole.exe"
exit /b