我想在我的 C++ 代码中更改组策略设置。
我知道我应该使用IGPEInformation
orIGroupPolicyObject
函数,但是如何将它们用于像这样的非基于注册表的策略?这个在注册表中没有密钥(我在 cis-microsoft-windows-7-benchmark pdf 中找到了它)
Computer Configuration\Windows Settings\Security Settings
\Local Policies\User Rights Assignment\Allow log on locally