2
Answers

How to Impersonate local system account in c#

Kalyan Vedantam

Kalyan Vedantam

15y
22.6k
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)