What I would like is the ability to schedule the times where the Prime 95
service starts and stops, be able to modify said schedule, and be able to
turn off Prime 95 manually in a particular lab when needed (even if this is
done through modifying the schedule to turn off the service 1 minute from
the current time).  I also need the ability to schedule each lab
individually.

Any ideas?

you should be able to control them with WSH scripts running on a windows server via its task scheduler. WMI (Windows Management Instrumentation) will let you start/stop/enable/disable/etc services on client workstations as long as the scripts run from a domain account with local admin privs on the wokstations.

MS has sample scripts to control services.
http://www.microsoft.com/technet/scriptcenter/scripts/os/services/ossvvb23.mspx
replace the "." with the name of the workstation you wish to control.

here's samples of the rest of the service functions.
http://www.microsoft.com/technet/scriptcenter/scripts/os/services/default.mspx

put those scripts in a yourfilename.vbs and they're executables.

technical documentation on the WMI services interface
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/wmi_tasks__services.asp

add in code to enumerate the clients from a list (or even a SQL database?) with a bit more vbscript or jscript.

    for each strComputer in Array("piglet","porker","hawg")

        Set objWMIService = GetObject("winmgmts:" _
            & "{impersonationLevel=impersonate}!\\" _
            & strComputer & "\root\cimv2")
        Set colListOfServices = objWMIService.ExecQuery _
            ("Select * from Win32_Service Where Name = 'ntprime'")
        For Each objService in colListOfServices
            objService.StartService()
    next

_______________________________________________
Prime mailing list
[email protected]
http://hogranch.com/mailman/listinfo/prime

Reply via email to