Changing non-registry group policy in C ++

I want to change the Group Policy settings in my C ++ code.

I know I should be using functions IGPEInformation

or IGroupPolicyObject

, but how do I use them for registry-agnostic policies like this one? it doesn't have a key in the registry (I found it in cis-microsoft-windows-7-benchmark pdf)

Computer Configuration\Windows Settings\Security Settings
    \Local Policies\User Rights Assignment\Allow log on locally

      

+3


source to share





All Articles