Microsoft Virtualization Discussions

Script - NetApp new user auto provisioning and share creation

danekantner
3,317 Views

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.

 

https://gallery.technet.microsoft.com/scriptcenter/NetApp-new-user-auto-9efa1918

 

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.

1 REPLY 1

JGPSHNTAP
3,309 Views

Dane -

 

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

 

-josh

Public