Kalyan Vedantam

Kalyan Vedantam

  • NA
  • 109
  • 39.3k

How to Impersonate local system account in c#

May 10 2009 9:40 PM
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)