Changes

Jump to: navigation, search
Creating a Sahre using Net Share
</pre>
== Creating a Sahre Share using Net Share ==
Perhaps the most most common requirement when working with shared files and folders is to create a new share. The most basic of commands simply creates the share and assigns a share name. For example:
/GRANT:bill,READ
MyFolder was shared successfully.
</pre>
 
To create a share with comments use the ''/REMARK'' argument following by the comment text:
 
<pre>
C:\Windows\system32>net share MyFolder=c:\users\nas\MyFolder /REMARK:"My SharedFolder"
MyFolder was shared successfully.
</pre>
 
== Using Net Share to Delete a Share from a Local Server ==
 
To remove a share from a local server using the ''net share'' command together the share name of the share to be deleted together with the ''/DELETE'' option. For example:
 
<pre>
C:\Windows\system32>net share MyFolder /DELETE
MyFolder was deleted successfully.
</pre>
 
== Using Net Share to Delete a Share from a Remote Server ==
 
The ''net share'' command may also be used to delete a share from a remote server. In order to achieve this, the name of the remote computer on which the share resides must be specified before the ''/DELETE'' option prefixed with \\. In the following command-line, the share named ''MyFolder'' is removed from a remote server named ''winserver-2'':
 
<pre>
C:\Windows\system32>net share MyFolder \\winserver-2 /DELETE
MyFolder was deleted successfully.
</pre>

Navigation menu