Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ,
I want to change group policy setting in my c++ code.
I know i should use IGPEInformation or IGroupPolicyObject functions,
but how use them for non registry based polices like this one :
Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Allow log on locally

Thanks a lot

1 solution

Same question on SO[^]

The first link[^] looks appropriate
Share this answer
nazaninamiri 22-Apr-15 0:46am    
I know them. they are for registry based group policy,
what should i do with group policies that are not registry based!? i mean when i set them they don't change registry.
barneyman 22-Apr-15 2:06am    
they're not registry based -- read the link again ...
nazaninamiri 25-Apr-15 2:17am    
first thanks for your reply,
maybe I'm wrong but the sample code is written for Administrative Templates that is registry based. and change registry with functions like GetRegistryKey() , RegSetKeyValue(),...
barneyman 26-Apr-15 4:51am    
the HKEY being accessed is gleaned from the IGroupPolicyObject, it's not a normal registry key

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900