Quantcast
Channel: File Services and Storage Forum
Viewing all articles
Browse latest Browse all 1766

net share with permissions

$
0
0

Hi

 

having some problem setting up a net share, I would like to setup a net share and set the permissions at the same time

This is what i run in a powershell windows

PS D:\dfsshares> net share dfs_company=d:\dfsshares\company /GRANT:EVERYONE,READ

The syntax of this command is:

 

NET SHARE

sharename

          sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]

                               [/USERS:number | /UNLIMITED]

                               [/REMARK:"text"]

                               [/CACHE:Manual | Documents| Programs | BranchCache | None]

          sharename [/USERS:number | /UNLIMITED]

                    [/REMARK:"text"]

                    [/CACHE:Manual | Documents | Programs | BranchCache | None]

          {sharename | devicename | drive:path} /DELETE

          sharename \\computername /DELETE

 

Syntax looks okay to me

 

Alex


Viewing all articles
Browse latest Browse all 1766

Trending Articles