Link to home
Start Free TrialLog in
Avatar of ErikVest
ErikVestFlag for Afghanistan

asked on

How to list GPO's in an OU using c#

Hi.

I want to use C# to list GPO's in a OU. How do i do that using c#.
I have installed GPMC and imported this into c#.
Does anyone have some examples of this?
ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this also shows how to enumerate over all gpos in the domain, the ou object should have something simliar.

http://msdn.microsoft.com/en-us/library/ee862406(VS.85).aspx
Avatar of ErikVest

ASKER

Hi.

Well it resolved some of my problems. But you was the only one who answered so you get the jackpot. :D