By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,134 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,134 IT Pros & Developers. It's quick & easy.

create a non-security group in AD wont work!

P: n/a
Hi there!
iam trying a code snippet from MSDN heres the link :
ive tried the code but it throws an error :
A constraint violation occoured

ith this code taken from the link above but modified with my AD
So all i wanna do is add a Manager group to the OU Dregis and give it
those rights. Wont work?! Any ideas?

DirectoryEntry ou = de.Children.Find("OU=Dregis");
DirectoryEntry mgr = ou.Children.Add("CN=Managers","group");
mgr.Properties["groupType"].Value =
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.