问题描述
大家好,
我想使用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
推荐答案
>> 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#访问计算机的本地安全策略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!