Posted On 2007-04-24 by FortyPoundHead
Keywords: Command Reference
Tags: Windows Commandline Windows
Views: 2295

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.

Display all shares
RMTSHARE \\server

Display details of a specific share
RMTSHARE \\server\sharename

Share a Folder
RMTSHARE \\server\sharename=drive:path [options]

Share a Printer
RMTSHARE \\server\sharename=printername /PRINTER [options]

Edit an existing SHARE
RMTSHARE \\server\sharename [options]
Delete a SHARE
RMTSHARE \\server\sharename /DELETE

/GRANT user:perm
/REMOVE user


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"

About the Author

has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links