We're trying to start and stop a Windows Service on a Win2008 server, but we keep running into issues with UAC.
Has anyone been able to work around it without disabling UAC completely?
Have you tried powershell?
We use powershell 2.0 and run remote commands on many servers
However the runtime user has to have enough rights on the target server to be able to stop and start tha target services
It's easiest to make the runtime user a local admin (usually we wind up executing other automated tasks on the servers)
PARAMS - stop
set-service -computerName -name '' -status Stopped -passthru
PARAMS - start
set-service -computerName -name '' -status Running -passthru
one thing to watch out for is the service name being different from the name on target server
one may work over the other