Change StafCop Server IP address on Endpoints

Script for changing the IP address set on the agents to the specified IP-address:

set var=192.168.1.122:443
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TimeSvc3\ServiceConfiguration /v Url /t REG_EXPAND_SZ /d %var%
C:\Windows\SysWOW64\TimeControlSvc\vmnetdrv64.exe stop
C:\Windows\SysWOW64\TimeControlSvc\vmnetdrv64.exe start

Change StaffCop Server IP address on agents

sudo /usr/share/staff/agent 192.168.1.122 restart