How to create and manage network shares in Windows 2008 Server Core Computer
How to obtain information about currently configured network shares in a Windows Server 2008 Server Core computer
To obtain information about currently configured shares on a Windows Server 2008 Server Core computer run the net share command will no command-line options.
C:\>net share
Share name Resource Remark
---------------------------------------------------
C$ C:\ Default share
IPC$ Remote IPC
ADMIN$ C:\Windows Remote Admin
The command completed successfully.
How to create a network share in a Windows Server 2008 Server Core computer
To create a network share in a Windows 2008 Server Core computer, use net share command as shown below.
C:\>net share MyShare=C:\MyShare
MyShare was shared successfully.
Here, the shared folder is C:\MyShare and it is shared using the share name "MyShare". By default, Windows will assign read permission to Everyone when a share is created without specifying any permissions.
If you want to grant specific permissions to individual users or groups, for the network share, use the the net share command with /GRANT option as shown below.
C:\>net share MyShare=C:\MyShare /GRANT:jajish,FULL
MyShare was shared successfully.
If you want to create a network share with everyone full access, use the net share command as shown below
C:\>net share MyShare=C:\MyShare /GRANT:Everyone,FULL
MyShare was shared successfully.
If you want to create a share with only read permission for a user, use the net share command as shown below.
C:\>net share MyShare=C:\MyShare /GRANT:tintin,read
MyShare was shared successfully.
To create a network share with comments use the net share command with /REMARK option as shown below.
C:\>net share MyShare=C:\MyShare /GRANT:Everyone,FULL /REMARK:"Applications and
Files"
MyShare was shared successfully.
How to delete a network share in a Windows Server 2008 Server Core computer
To delete a network share, use the net share command as shown below. Remember, only "share" is deleted, folder will not be deleted.
C:\>net share MyShare /DELETE
MyShare was deleted successfully.