Advertisement

07.06.2007 at 07:29AM PDT, ID: 22679392 | Points: 500
[x]
Attachment Details

Programming group policy

Asked by wayside in C++ Programming Language

Tags: group, policy, programming

Can anyone give me some pointers on how to programmatically access and manipulate group policy?

For example, for a policy such as "Maximum password age" I'd like to be able to query for the setting, be able to tell which group policy object the setting came from, and possibly change the value on that group policy object.

I know (in this case) I can use NetUserModalsGet() to find this out, but it doesn't give any indication about group policy.

The closest I've seen is in the Resultant Set of Policy snap-in (rsop.msc) which displays the policy, the value, and the source GPO. I can't figure out how to do it from the crappy MSDN docs though.

Any pointers to sample code would be greatly appreciated.
Start Free Trial
[+][-]07.06.2007 at 07:58AM PDT, ID: 19432258

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 09:03AM PDT, ID: 19432792

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 09:16AM PDT, ID: 19432874

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 10:23AM PDT, ID: 19433385

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 12:03PM PDT, ID: 19434171

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32