2
Answers

How to Impersonate local system account in c#

Photo of Kalyan Vedantam

Kalyan Vedantam

16y
22.7k
1
I am trying to start/stop a windows service in the code from a web application.The web application runs as IUSR_ComputerName, but this account does not have enough access rights to star/stop the service.

How do I impersonate the local system account, so that I can stop/start the service?

Answers (2)