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