jskfan
asked on
create home directory with Windows script
I need to configure home directory for all users. Do I have to go to each user properties in AD and set it up manually or there is a script that would do that for me OR there is a policy that can do that?
thanks
thanks
ASKER
is the only way to d it through script? GPO wouldn't?
Hi, as far as I know, yes, a script is the only way. Group Policy by itself cannot create a folder and apply network permission....
Rob.
Rob.
ASKER
can you please comment each line of the script. I know it s a long script.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can try this script. This requires that xcacls.vbs is in your System32 folder
You can change this line:
If Left(objRecordSet.Fields("
so that CN=Test Account matches the display name of one user that you want to test this against.
Change these two lines
strHomeDrive = "N:"
strHomeShare = "\\fileserver\user$"
so that the strHomeShare points to the parent folder (which is shared) where your user drives are to be created.
Regards,
Rob.
Open in new window