I want to make a batch file that shares and give some permissions to a folder. Right now I have:
net share C$ /delete
net share shared=C:\stuff_to_share /users:2
This effectively shares the folder c:\stuff_to_share, but it gives permissions to everybody (read only, since I'm in XP SP2), but I want to remove the Everybody permission and give specific access to some people.
Of course, it most be a command, not through the Windows GUI.
I looked the CACLS command, but it seems to affect only the local Access List, not the Shared ones.
Any advice is welcome. Thanks in advance.