NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Script - NetApp new user auto provisioning and share creation

danekantner
4,266 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
4,258 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