>Does someone have a quick code snippet using windows scripting host to start a WinNT service? It doesn't have to be WSH if someone has a different programmatic way to start and stop service. I am currently using wshobj.run(...), but that pops up a DOS window while trying to start the service. There must be a more elegant way, not to mention a way to get some sort of service startup status message. Thanks in advance.
>
> -Josh
Josh,
Using ADSI, you can:
oservice = GetObject("WinNT://MyMachine/LanManServer,service")
oservice.Start
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao