Sorry, I forgot the link:
How Can I Move All the Users from One OU to Another OU?
http://www.microsoft.com/t
Regards,
Rob.
Main Topics
Browse All TopicsDear all,
I would like to be able to use a VBScript that would do the following:
1. Search all OU's in our AD for a user specified by an InputBox
2. Disable and move user to another OU
3. Change user's description to read - Disabled %date% - %username% (of person who ran vbscript)
4. Hide user's e-mail address from exchange
5. Remove them from all groups (except Domain Users)
6. Move Profile folder, calling Robocopy or WShell, to another server then add today's date as a suffix e.g. JBloggs 240607
7. Move Home Folder to another server then add part of the path as a suffix e.g. if the JBloggs' Home Folder is \\servername\Financial Services then the folder name would become JBloggs - Financial Services
I have very limited knowledge of VB. I can find parts of these processes from other VBScripts but it would appear people have a varied way of compiling them so combining them has proven tricky.
Any help would be appreciated,
Neil
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry, I forgot the link:
How Can I Move All the Users from One OU to Another OU?
http://www.microsoft.com/t
Regards,
Rob.
Business Accounts
Answer for Membership
by: RobSampsonPosted on 2007-06-24 at 14:58:56ID: 19352509
qvhit, that's a big project. Maybe, for simplicity, the best thing to do is write VBScripts for each separate process, make sure they work, then use a "wrapper" VBScript that will call each of these in sequence. At least that could be done originally, until you have enough experience to start combing them successfully. l") ", 1, True ", 1, True ", 1, True
The "wrapper" file would be similar to this:
'==========
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shel
objShell.Run "WScript \\server\share\Script1.vbs
objShell.Run "WScript \\server\share\Script2.vbs
objShell.Run "WScript \\server\share\Script3.vbs
'=========
Anyway, here's an article on finding a user and moving it. You would just add a CN parameter to the LDAP connection string to find the particular user. You could combine into this script steps 1, 2, 3, and 5 I would say......just for now.
That's just a start.....I'm not sure about the exchange bit.
Regards,
Rob.