Move users to specific OU

R

Rytis

I need a script / tool to perform a specific task:

1. I have a list of usernames in in excel workbook, in column A (for
example)
2. I have a destination OU for the particular user in column B (LDAP path)

Is it possible to move each user from column A to the OU, which is specified
in column B? And how to do this task for example with vbs?

Thanks.

Rytis
 
C

Cary Shultz [A.D. MVP]

Rytis,

I am unfortunately no scripter. Are all of the users that you are trying to
move located in one container/OU? Such as the USERS container? Another
part of that question would be are all members of that container/OU to be
moved to your designated target OU? The reason that I ask is that in the
ADUC you can simply select all of the user account objects in the
container/OU, right click, select Move and then select the target
destination OU. You can do this for a ton of user account objects. How
many do you have?

Sorry that I can not provide a script for you to do this. Have you taken a
look at the scripting section of MSDN? There should be sample scripts in
there......

HTH,

Cary
 
S

Stew Basterash

I believe you could use a script that connects to your excel spreadsheet
using an ADO connection and loop through all the users and place them in the
specified OU's...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top