Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1156
  • Last Modified:

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?
0
ErikVest
Asked:
ErikVest
  • 2
1 Solution
 
Kyle AbrahamsSenior .Net DeveloperCommented:
0
 
Kyle AbrahamsSenior .Net DeveloperCommented:
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
0
 
ErikVestAuthor Commented:
Hi.

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now