Group Policy  
Author Message
dickP





PostPosted: Visual C# General, Group Policy Top

How do I access Group Policy Objects programmatically For example I want to get a list of OUs.

Cheers




Visual C#7  
 
 
ahmedilyas





PostPosted: Visual C# General, Group Policy Top

you are looking at using perhaps the DirectoryServices classes/namespace.

take a look at this and see if it helps you:

http://geekswithblogs.net/mhamilton/archive/2006/07/15/85303.aspx



 
 
Zhi-Xin Ye - MSFT





PostPosted: Visual C# General, Group Policy Top

When you right click the Start button, you can select Open, Explore or Find options. To lock down this option, rename the key [HKEY_CLASSES_ROOT\Directory\shell] to [HKEY_CLASSES_ROOT\Directory\shell.lockdown] and rename the key [HKEY_CLASSES_ROOT\Folder\shell] to [HKEY_CLASSES_ROOT\Folder\shell.lockdown] . There is nothing magical about the lockdown extension. Don't delete these keys, just rename them. If you want to put the functionality back, all you need do is to rename the value back to "shell".



 
 
dickP





PostPosted: Visual C# General, Group Policy Top

Good article. Thanks for the reference.