


For example, the following command creates the MyFolder share assigning full permission to user fred: C:\Windows\system32>net share MyFolder=c:\users\bill\MyFolder /GRANT:fred,FULL In order to grant specific permissions to individual users or groups, the /GRANT option must be used when creating the share to specify the share permissions to be assigned. By default, Windows will assign read permission to Everyone when a share is created without specifying any permissions. In the above example, the folder located at c:\users\bill\MyFolder has been shared using the share name MyFolder. For example: C:\Windows\system32>net share MyFolder=c:\users\bill\MyFolder The most basic of commands simply creates the share and assigns a share name. Perhaps the most common requirement when working with shared files and folders is to create a new share. To obtain information about currently configured shares on a Windows Server 2008 system simply execute the net share command will no command-line options: C:\Windows\system32>net share Getting Share Information using Net Share This can be achieved by right clicking on the Command Prompt in the Start menu and selecting Run as administrator. Note that to perform any tasks other than viewing the current shares, the command-prompt must be running with administrator privileges. In the remainder of this chapter, some of the more common sharing tasks using net share will be covered. DELETEĪs illustrated above, many of the tasks which can be performed using the graphical tools can also be performed using the command line. In basic terms, the syntax for net share is as follows: NET SHARE

The first step in learning to use the net share command is to gain a basic understanding of the command line syntax of the tool.
