By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,743 Members | 1,028 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,743 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 :

http://msdn.microsoft.com/library/de...ing_groups.asp
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
Objects.
So all i wanna do is add a Manager group to the OU Dregis and give it
those rights. Wont work?! Any ideas?
THX!

DirectoryEntry ou = de.Children.Find("OU=Dregis");
DirectoryEntry mgr = ou.Children.Add("CN=Managers","group");
mgr.Properties["groupType"].Value =
ActiveDs.ADS_GROUP_TYPE_ENUM.ADS_GROUP_TYPE_GLOBAL _GROUP;
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.