NET SHARE Command Line Syntax Help with Win7

LedaOhio

Honorable
Apr 6, 2013
19
0
10,520
Hello!

What would the command line be to add full access to one user (Master) and read only for authenticated users via command line.

IE;
NET SHARE F-Drv$=F:\ /GRANT:master,FULL,"authenticated users",READ
(does not work)

Instead of using a different share name for the same drive?

IE;
NET SHARE Full-F-Drv$=F:\ /GRANT:master,FULL
NET SHARE Read-F-Drv$=F:\ /GRANT:"authenticated users",READ

*head scratch*

Or, if there's a better mousetrap.. I am all ears!

Thanks in advance...

 
Solution
NET SHARE F-Drv$=F:\ /GRANT:master,FULL,"authenticated users",READ

Remove the comma after full and add /grant: again.

net share F-Drv=F:\ /Grant:master,full /grant:"authenticated users",read

I believe it's also not good etiquette to use $ at the end of your shares. Typically $ signifies a system share, but it's up to you.

Tanyac

Reputable
NET SHARE F-Drv$=F:\ /GRANT:master,FULL,"authenticated users",READ

Remove the comma after full and add /grant: again.

net share F-Drv=F:\ /Grant:master,full /grant:"authenticated users",read

I believe it's also not good etiquette to use $ at the end of your shares. Typically $ signifies a system share, but it's up to you.
 
Solution