We have had an issue where one of our file servers forgets its share drives every time it reboots. To fix the issue we have to recreate all its share drives manually. We don't know why it happens but it is a real pain especially as it is our main file server.
In order to ease the admin issues of creating all the shares after we restart the server we have created a script to automate the task.
The script consists of multiple net share commands.
net share myshare=c:\testfolder
Please note: the share is created will full share permissions given to the group 'everyone'.
Post a Comment