cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
809
Views
0
Helpful
1
Replies

Anyone have a UAC workaround

tomdefelice
Level 1
Level 1

                   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?

1 Reply 1

Marc Clasby
Level 1
Level 1

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)

Examples

CMD powershell

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

Marc