2014-11-13 11:00 AM
Script Parses AD for newly created or changed users where that new user's homedirectory is set to the matching home directory server this script is creating shares for. Creates CIFS share, copies default folder structure from template, set user perms to modify, e-mails notification.
Many configurable options. Will auto select volume with most available free space to rotate which volume new users are on, or allows a regex pattern match for first letter of user's directory name to put them on Users1, Users2, etc., accordingly.
I've been using this awhile but just cleaned it up a bit and posted.
Please let me know if you experience any issues.
** The first time you run you will see it trying to recreate the shares, which will not actually work or make any changes to the share, but the XML files will then retain and this will not happen in runs thereafter.
2014-11-13 11:47 AM
As always.. Nice job... Thanks for helping contribute
I know they buried our forums so hopefully people can still find this thread and find it useful