The script above works a treat unless the home folder does not exist (new user)... I guess I need it to create a folder as the username if it is not there...
You will want to use the FileSystemObject to check if the folder exists and if not create the folder. Following that you will want to call XCACLS to set the folder permissions.
Rather than doing that at login, I would use a script to enumerate AD for users and check for the folders and create where needed. Additionally, what I do is reverse that process and look for user directories that don't have a matching user. I then delete those folders since they are most likely from deleted user accounts.
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.