The NET SHARE does not support the/GRANT option in Windows XP and 2000.
An alternative is the RMTSHARE.EXE tool from the resource kit.
thinking.nerd explains how in Create Windows shares from command line using RMTSHARE.EXE ~ thinking.nerd.
Note I’ve had this fail on one or two machines with this message:
Account everyone is not found.
The command failed: 1788
There I used fsmgmt.msc to manually set the grants.
–jeroen
via: