Tutech Posted August 28, 2006 Posted August 28, 2006 Hi. Exists there a way to create a group in ads and a special ou? I dont know where I have to look. Using net group /add is no option because it creates just a group. There is no way to move this group into a special ou. In my opinion it would be better to do it without any external tools. Any hints where I shoul look? Found some topics about adding user to groups. But had no real idea what I should do with this. Any keywords for me? Thanks Micha
arcker Posted August 28, 2006 Posted August 28, 2006 look the forum for my another active directory look at the .MoveHere for the Ous and the .Create for the groups -- Arck System _ Soon -- Ideas make everything "La critique est facile, l'art est difficile" Projects :[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Tutech Posted August 28, 2006 Author Posted August 28, 2006 look the forum for my another active directorylook at the .MoveHere for the Ousand the .Create for the groupsHi. I searched your profile for active directory. You did some work on this topic Which one do you suggest for me? I searched some of your topics.http://www.autoitscript.com/forum/index.ph...c=18115&hl= But this is not the one you suggested.Could you give me the link?ThanksMicha
Tutech Posted August 29, 2006 Author Posted August 29, 2006 Hi. I searched your profile for active directory. You did some work on this topic Which one do you suggest for me? I searched some of your topics. http://www.autoitscript.com/forum/index.ph...c=18115&hl= But this is not the one you suggested. Could you give me the link? Thanks Micha Ok. Solved the problem. $oDomain = ObjGet("LDAP://ou=Printer,dc=your,dc=domain,dc=com") if IsObj($oDomain) Then $oGroup = $oDomain.Create("group", "cn=" & "TESTGROUP") $oGroup.Put ("sAMAccountName", "TESTGROUP") $oGroup.Description = "Test for printer groups" $oGroup.SetInfo endif A very good source for programming ads via script is here: http://www.microsoft.com/technet/scriptcen...t.mspx?mfr=true Bye Micha
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now