Create a process with ordinary rights from an administrator process

前端 未结 6 1690
别跟我提以往
别跟我提以往 2020-12-20 04:46

There is any way to run another process with ordinary rights from a process running as administrator? From a process with elevated rights I want to start a process with ordi

6条回答
  •  失恋的感觉
    2020-12-20 05:06

    This seems like a nice way to do it, provided you don't care about situations where the Shell is not running (e.g. possibly some Terminal Services application-only setups, perhaps, though I'm not sure):

    http://brandonlive.com/2008/04/27/getting-the-shell-to-run-an-application-for-you-part-2-how/

    It gets an interface to Explorer.exe, which should be running in the user's normal context, and asks Explorer to execute a command in its behalf. This is done just using simple, documented COM interfaces and without having to mess around with process tokens or code/DLL injection.

提交回复
热议问题