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!Code:net share Resources "R:\Resources" /add net share Resources /grant:"everyone",full
Any help please?
Last edited by reggiep; 15th November 2012 at 11:02 AM.
Sorry, I knew I was being a bit slow.
Sorted it out now.
but not sure about the deny yet!Code:net share resources="r:\resources /GRANT:everyone,FULL
There are currently 1 users browsing this thread. (0 members and 1 guests)