Oct 4, 2012 #1 DougInCanada Technical User Joined Feb 1, 2004 Messages 98 Location CA I'm trying to move a user object to a different OU but have no idea how to go about it. Can anyone point me in the right direction?
I'm trying to move a user object to a different OU but have no idea how to go about it. Can anyone point me in the right direction?
Oct 4, 2012 #2 Geates Programmer Joined Aug 25, 2009 Messages 1,566 Location US Moving is the same as removing from one and adding to another. The link below is filled with AD Managment examples. http://www.activexperts.com/activmo...s/usersgroups/groups/#RemoveuserFromGroup.htm -Geates "I do not offer answers, only considerations." - Geates's Disclaimer http://raqxtr.sstar.com/caspdoc/html/vbscript_language_reference.htm Upvote 0 Downvote
Moving is the same as removing from one and adding to another. The link below is filled with AD Managment examples. http://www.activexperts.com/activmo...s/usersgroups/groups/#RemoveuserFromGroup.htm -Geates "I do not offer answers, only considerations." - Geates's Disclaimer http://raqxtr.sstar.com/caspdoc/html/vbscript_language_reference.htm
Oct 4, 2012 Thread starter #3 DougInCanada Technical User Joined Feb 1, 2004 Messages 98 Location CA Thanks, Geates! That's a great site, it also resolves another issue I was having with removing a user object from all groups. I used this: Code: set objOU = getobject("LDAP://ou=newOU,dc=wisesoft,dc=co,dc=uk") objOU.MoveHere "LDAP://cn=user1,cn=users,dc=wisesoft,dc=co,dc=uk",vbNullString It worked perfectly for me. Upvote 0 Downvote
Thanks, Geates! That's a great site, it also resolves another issue I was having with removing a user object from all groups. I used this: Code: set objOU = getobject("LDAP://ou=newOU,dc=wisesoft,dc=co,dc=uk") objOU.MoveHere "LDAP://cn=user1,cn=users,dc=wisesoft,dc=co,dc=uk",vbNullString It worked perfectly for me.
Oct 4, 2012 #4 Geates Programmer Joined Aug 25, 2009 Messages 1,566 Location US Sweet. I answered your other question without realizing observing who posted it. I'm glad the site was able to help you out. -Geates "I do not offer answers, only considerations." - Geates's Disclaimer http://raqxtr.sstar.com/caspdoc/html/vbscript_language_reference.htm Upvote 0 Downvote
Sweet. I answered your other question without realizing observing who posted it. I'm glad the site was able to help you out. -Geates "I do not offer answers, only considerations." - Geates's Disclaimer http://raqxtr.sstar.com/caspdoc/html/vbscript_language_reference.htm