Check if another process has admin privileges in .NET

后端 未结 4 1900
迷失自我
迷失自我 2020-12-21 05:02

I\'m looking for a way to check that a remote process has administrator privileges from my (fully managed) code. It\'s safe to assume that my code will run be run with admin

4条回答
  •  鱼传尺愫
    2020-12-21 05:46

    I have created Process.Extensions.dll extension using solution offered by Anders

    https://stackoverflow.com/a/53460693/3855622

提交回复
热议问题