Script to create shares and apply permissions to shares?
We have a server that has a Direct Attached Storage box plugged into it.
All great except when the box is rebooted.
All the shares are dropped from it!
I would like to create a script that when run would recreate the share and give the correct permissions to the users.
For example I need to reshare the folder r:\resources as resources to everyone but also create a deny to the exams group.
I assume it would need to be something like...
but that's my limit at the moment!
net share Resources "R:\Resources" /add
net share Resources /grant:"everyone",full
Any help please?