RMTSHARE.exe – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Manage File and Printer shares, local or on a remote server.
Although missing from recent Resource kits, the old version appears to work fine under Windows XP/2003.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
Syntax Display all shares RMTSHARE \\<em>server</em> Display details of a specific share RMTSHARE \\server\sharename Share a Folder RMTSHARE \\<em>server\sharename</em>=drive:path [<em>options</em>] Share a Printer RMTSHARE \\<em>server\sharename</em>=<em>printername</em> /PRINTER [<em>options</em>] Edit an existing SHARE RMTSHARE \\<em>server\sharename</em> [<em>options</em>] Delete a SHARE RMTSHARE \\<em>server\sharename</em> /DELETE Options /USERS:<em>number</em> /UNLIMITED /REMARK:"<em>text</em>" /GRANT <em>user</em>:<em>perm</em> /REMOVE <em>user</em> |
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”
An alternative way to list remote shares with PowerShell:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# List the file shares on the remote server: <em>SERVER64</em>. $shares = Get-WmiObject -class Win32_Share -computername <strong><em>SERVER64 </em></strong>-filter "Type=0" $shares | foreach { $path=($_.path) $Description=($_.Description) $name=($_.name) $Caption=($_.Caption) "Share Name : $name Source Folder: $path Description : $Description Caption : $Caption" } |
I love the efforts you have put in this, regards for all the great content.