문제

I wondered how psexec.exe by sysinternals executes a process as a SYSTEM user. I need to run a tool under a SYSTEM process, but I don't really know how to do that without registering it as a service.

Does anyone have an idea ?

p.s. I would really prefer to do it with WINAPI (C++). Thanks! :-)

Thanks!

도움이 되었습니까?

해결책

psexec operates by creating a phantom, behind-the-scenes Windows service named "psexesvc" that is then removed after the operation completes.

Details are here: http://www.windowsecurity.com/articles/PsExec-Nasty-Things-It-Can-Do.html

Perhaps your tool could call psexec to run a process?

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