c# - How to retrieve group-policy settings programatically? -


microsoft deliveres nice com enabled dll named gpmgmtlib (gpmc api) manage gpos in active directory. library exports interface called igpmgpo, represents gpo , can sorts of stuff, settings permissions, exporting , importing.

sadly, if understood reference on msdn correctly, interfaces provide no way retrive settings set gpo programatically, little uncertian if gpmgtmt way go.

here goes question:

  • how can access (read-only sufficient) policy settings of specific gpo in domain programatically? solutions using c# or .net language preferred.

annotation:

i need automatically compare gpos of 2 domains in forest, different. tried exporting gpo xml report , using diff-tool, way time consuming, since there ten domains in forest going have compared during next months multiple times.

do know product call advanced group policy management (agpm) distributed in microsoft desktop optimisation pack (mdop) exists, , includes capavility of managing , comparing gpos.


you've got group policy management console class library play assembly in spite of playing com object, i'am not sure it's better.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -