Solved

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

Posted on 2010-09-14
3
1,142 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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