RunAs("username", "hostname", "password", 0, "")
$CMD = 'net stop "service name has spaces"'
RunWait('"' & @ComSpec & '" /k ' & $CMD, @SystemDir)
I get this in the command window:
System error 5 has occurred.
Access is denied.
C:\Windows\SysWOW64>
@TheSaint i was reading old posts and saw that you had a bunch of samples out there, but was not able to see/download any of them.
appreciate your help!!