Create 40,000 home directories

G

GT

I'm looking for a script or tool that will allow us to create home
directories for about 40,000 users that are in an AD OU. I need this to
setup the NTFS permissions and set the profile properties for home
directory. I figure someone must have already done this before I re-invent
the wheel.

Thanks.

-GT
 
E

Enkidu

I'm looking for a script or tool that will allow us to create home
directories for about 40,000 users that are in an AD OU. I need this to
setup the NTFS permissions and set the profile properties for home
directory. I figure someone must have already done this before I re-invent
the wheel.
Yes, someone has done it before.

Cheers,

Cliff
 
G

GT

Looks good, I'll give it a try.

Thanks :)

-GT
Matjaz Ladava said:
Hi GT,

Here is the script that does just that. Rename the file to the vbs extension
and modify two parameters:
usersShare - points to a share where user folders are created like
\\server\users$\
rootOU - root ou where query starts to get every user and sets its
homeDirectory, homeDrive properties (example ou=myou)

Script then creates appropriate folder and sets permission, so that user has
exclusive permission to this folder.
My advice would be to set security on \\server\users$ to administrators
group (full) and then run the script. Script will add each user full
permission to its folder. Because of security inheritance, Administrators
will have full permission on each user folder.
This script uses adssecurity.dll which is part of ADSI SDK. You can download
ADSI SDK from
http://download.microsoft.com/download/2/9/7/29720925-faa3-477f-a5cd-beef80adac07/adsrtk.msi

If you have any question just post back.

--
Regards

Matjaz Ladava, MCSE (NT4 & 2000), Windows MVP
(e-mail address removed)
http://ladava.com
 

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