To modify an existing share, the syntax above can be simplified to NET SHARE sharename ...
with the one exception of the /GRANT option.

Filename Limits

When creating shares you should be aware that the mapped drive will always be shorter than the real path on the server. This can cause issues with the 260 character filename limit.

For example, if you have a folder on a server called E:\workgroups\ thats mapped for the users as X:\
A legal filename created on a client via the mapped drive:X:\something\... 158 chars
then becomes on the server E:\workgroups\something\...168 chars (which some server backup software may fail to read.)

You can minimise this issue by keeping the server path as short as possible E:\wg\

Examples

Display the details of the local share called workgroupsNET SHARE workgroups

Display the details of all local shares, including the folder/pathname that is being shared:NET SHARE
To retrieve share details from a remote machine, use WMIC share