Avoiding UAC but launching an elevated process using a windows service

后端 未结 1 1574
有刺的猬
有刺的猬 2020-12-01 15:05

I have a non-interactive service running as a the privileged SYSTEM user on Windows machines, and I need it to launch a given executable as an elevated process.

I h

相关标签:
1条回答
  • 2020-12-01 16:02

    If you have a filtered token for the interactive user - for example, one retrieved via WTSQueryUserToken() - you can retrieve the unfiltered ("elevated") token by using the GetTokenInformation function with the TokenLinkedToken option.

    0 讨论(0)
提交回复
热议问题