Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving a user object to a different OU

Status
Not open for further replies.

DougInCanada

Technical User
Feb 1, 2004
98
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?
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top