Microsoft Virtualization Discussions

Script - NetApp new user auto provisioning and share creation


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.



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



NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner