Hi Jason,
You Could Try this
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service Where StartName = '.\netsvc'")
For Each objService in colServiceList
errReturn = objService.Change( , , , , , , , "password")
Next
Rgds,
Thiruppathi S
"Jason" <jason (AT) grossmans (DOT) net> wrote
Quote:
Is it possible to reset a Windows Service username and password remotely
(ie. from a workstation) with any sort of script? If so, could someone
please point me in the direction of some documentation?
Thanks in advance,
Jason |