Reading local security policy

早过忘川 提交于 2019-12-24 06:35:50

问题


I am trying to read a value from the Local security policies using C#. The value I am trying to read is the Debug Programs under the User Rights Assignment folder.


回答1:


As far as I can tell, these settings don't get stored in registry. You might have some success using the secedit command line tool. cmd /c secedit /export /cfg myfile.inf /areas USER_RIGHTS will generate the inf file which you can then parse to fish out the information you need. Not a very elegant solution, unfortunately, perhaps someone else can offer a better one.



来源:https://stackoverflow.com/questions/6850837/reading-local-security-policy

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!