Create 40,000 home directories

  • Thread starter Thread starter GT
  • Start date Start date
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
 
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
 
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
 
Back
Top