Admin Scripts: How to create Windows Share Folder using Net Share command

Guide to create Windows Share Folder using Net Share command

share01

Syntax

NET SHARE "<SHARE_NAME>"="<SHARE_PATH>" /GRANT:"<WINDOWS_ACCOUNT>",<GRANT_ACCESS> /USERS:<MAX_USERS> /CACHE:<CACHE_MODE>

<GRANT_ACCESS>: Read | Change | Full
<MAX_USERS>   : Set Value from 1 to 16777216
<CACHE_MODE>  Manual | Documents | Programs | BranchCache | None

Example

NET SHARE "Share1"="D:\ShareRoot\Share1" /GRANT:"Domain\testuser1",CHANGE /USERS:10 /CACHE:None

Leave a Reply

Your email address will not be published. Required fields are marked *

seventeen + 6 =

YLNotes: Yunlong Notes © 2017 Frontier Theme