Manage File and Printer shares, local or on a remote server.
Although missing from the Windows 2000 Resource kit, the NT version works fine under Windows 2000/2003.
Syntax
Display all shares
RMTSHARE \server
Display details of a specific share
RMTSHARE \serversharename
Share a Folder
RMTSHARE \serversharename=drive:path [options]
Share a Printer
RMTSHARE \serversharename=printername /PRINTER [options]
Edit an existing SHARE
RMTSHARE \serversharename [options]
Delete a SHARE
RMTSHARE \serversharename /DELETE
options
/USERS:number
/UNLIMITED
/REMARK:"text"
/GRANT user:perm
/REMOVE user
Notes
Either specify /Users to restrict the number of connections that can be made
OR specify /UNLIMITED
You can include several /GRANTs in a single command line.
Enclose paths that include spaces like this
\server"long share name"="c:long file name"