Here I found a post mentioning sc.exe by Lumumba which lets you add a service, delete a service , and configure a service within a script or bat file. For usage syntax, just start a cmd window end enter sc.exe. The purpose of my post is to make c:\windows\system32\sc.exe easier to discover using Search.
http://www.mjtnet.com/usergroup/viewtop ... 2a4898be5c
Here is an example of use in a bat file:
Code: Select all
sc.exe create MyProcess Type= own BinPath= "c:\program files\windows resource kits\tools\srvany.exe" Start= auto Obj= MyDomain\MyUser password= MyPassword DisplayName= MyProcess
Hope someone finds this useful,
Gale
[/quote]