Solved

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

Posted on 2010-09-14
3
1,143 Views
Last Modified: 2012-05-10
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
Comment
Question by:ErikVest
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 33676490
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 33676535
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
 

Author Closing Comment

by:ErikVest
ID: 33912442
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question