Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2010-09-14
3
Medium Priority
?
1,152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
Kyle Abrahams earned 2000 total points
ID: 33676490
0
 
LVL 41

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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 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