As far as I'm aware, this is done via the net
command.
However, the help section isn't very helpful, as it only shows me the secondary options and not how to use those.
Suppose I had a folder C:\Share_test
How would I make it shared from the command line?
C:\>
net help share
For example:
Using the "net help share" command you will see that the syntax is as follows:
For example, if I had a folder S:\Public which I wanted to share as "Public" the command would be:
The above command will automatically grant "Everyone" with Read permissions only. If you want to grant Everyone with Full Control the command would be:
Keep in mind that NTFS permissions still apply, so even though you might have granted EVERYONE with FULL access to the share, you'll still have to check the NTFS security permissions to ensure that the right people have permission there too.