如何使用C#访问计算机的本地安全策略? [英] How to access local security policy of computer using C# ?

查看:269
本文介绍了如何使用C#访问计算机的本地安全策略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想使用C#代码访问计算机的本地安全策略?

请告诉我怎么样访问?

TIA



sumitk

Hi all,
i want to access Local Security policies of computer using C# code?
Please tell me how to access?
TIA


sumitk

推荐答案



您好Sumitk.cdac,


Hi Sumitk.cdac,

>> i想要使用C#代码访问计算机的本地安全策略吗?

根据我目前正在寻找的信息,并没有找到使用C#代码访问计算机的本地安全策略的明确文档。

According to the information I am currently looking for, and did not find a clear document to access Local Security policies of computer using C# code.

我发现以下文章可能对您有所帮助。

I found the following article may helpful for you.

LSA功能 - 特权和假冒:

https://www.codeproject.com/Articles/4863/LSA-Functions-Privileges-and-Impersonation

LSA Functions - Privileges and Impersonation:
https://www.codeproject.com/Articles/4863/LSA-Functions-Privileges-and-Impersonation

另外,据我所知,您可以使用Powershell以编程方式修改本地安全策略。

Also, As far as I know, you can modify local security Policy programmatically using Powershell.

使用Powershell修改本地安全策略

https://stackoverflow.com/questions/23260656/modify-local-security-policy-using-powershell

Modify Local Security Policy using Powershell
https://stackoverflow.com/questions/23260656/modify-local-security-policy-using-powershell



最好的问候,


Best Regards,

Yohann Lu

Yohann Lu


这篇关于如何使用C#访问计算机的本地安全策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆