C#. How to programmatically grant User Log On as a Service

后端 未结 2 1377
攒了一身酷
攒了一身酷 2021-02-13 02:10

I\'ve searched through the internet, but haven\'t found any solution in c#. Does anybody know how to give user right to log on as a Service in c#?

2条回答
  •  无人共我
    2021-02-13 02:32

    EDIT: I found an article on CodeProject with sample code that shows exactly how to do this!

    I assume you've already found this KB that shows how to do it with native code. I'm looking for a C# way as well.

提交回复
热议问题