Hi, I need to disable a service for preventing it to start up automatically on boot. I can stop that service but I can't figure out how to disable it.
There is oService.StartType that gives me the start type but can't seem to change it.
Thanks!
Code:
Set oService = GetObject("WinNT://" & strComputer & "/" & strService1 & ",Service")
If Err.Number <> 0 Then
WScript.Echo "Service already stopped."
Else
oService.Stop
End If
There is oService.StartType that gives me the start type but can't seem to change it.
Thanks!