문제

I need to run a process with the SYSTEM account.

Starting from Administrator, which is the best way to elevate to the SYSTEM account?

It should work for Windows XP and later.

도움이 되었습니까?

해결책

If you need to start or stop a service that is running in the system account, you don't need to run a process in the system account.

Instead, you need to set the ACL on your service (it is your service, right?) to grant interactive users the right to start or stop your service.

If it is not your service, then you really shouldn't do that. If the author of the service decided that interactive users weren't supposed to start or stop their service, they probably had a good reason for making that decision.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top