From sebastian @ ITU / Wiki

Main: WindowsServiceRestartsScheduling

How to schedule services on a windows server

Task: e.g. Restart a certain service once a night.

Do it yourself:

 * bat w/ psservice call from SDK
 * wbscript w/ WMI 
 * powershell

Syntax of net command:

http://technet.microsoft.com/en-us/library/cc736564(WS.10).aspx#BKMK_cmd

Suggested solution:

         # net rpc service [stop,start,restart] [Service] -I [Server] -U Administrator%[password]

Usage:

 net rpc service list            View configured Win32 services
 net rpc service start           Start a service
 net rpc service stop            Stop a service
 net rpc service pause           Pause a service
 net rpc service resume          Resume a paused service
 net rpc service status          View current status of a service
 net rpc service delete          Delete a service
 net rpc service create          Create a service
Retrieved from http://www.itu.dk/people/sbut/?n=Main.WindowsServiceRestartsScheduling
Page last modified on October 27, 2011, at 09:34 AM