Discussion Locked

Share folder remotely

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
My NT4 server has no monitor now, and I want to share a folder. Is there any mean to share a resource remotely (from window or, better, from command line)?

14 replies

by hberkhoff

Use RMTSHARE (I think it is in the NT Resource Kit).

eg.:
RMTSHARE \\COMPUTERNAME\SHAPE=D:\APPS\SHARE /REMARK:"Apps" /grant administrators:F /grant "domain\employees":R

by pokvalitov

I use Win2000 Prof. at my workstation. I have installed "Support Tools" now from distr. and I don't see the RMTSHARE.
(If "Resource Kit is separate product, then we have no "Resource Kit".)

by joseph moore

Yep. I can think of a few options:
1) Can you connect to the NT4server with any remote control programs, like VNC or pcAnywhere, or RemoteAdmin? If so, then just connect to it with the remote software, and then create the share normally.
2) Is theserver part of a domain? If so, you can create a share from Server Manager, the standard tool from Microsoft. Every server has a copy of Server Manager. Normally, you use Server Manager from a PDC or BDC. Anyway, open Server Manager on another server, select this server, then click Computer -> Shared Directory. From there, you can give a shared folder name, and physical path, as well as permissions. Don't forget, you can also copy Server Manager (and a DLL or two) from the NT4Server CD and putthem on your workstation to run Server Manager.
3) www.dameware.com makes Dameware NT Utilities. This wonderful tool does the same functions as User Manager, Server Manager, and many other things! One of its uses is Shared Folders. YOu can view/add/delete shared folders on remote systems from Dameware.
4) You could launch a remote command prompt window using PSEXEC from Sysinternals (www.sysinternals.com). They have a free set of tools called PSTOOLS. Psexec is one of these tools. With PsExec, you can launch remote command prompt windows. Once you do that, you can run the NET SHARE command to create a shared folder from the command line.

by joseph moore

Here is the NET SHARE syntax:

NET SHARE sharename
sharename=drive:path [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Automatic | No ]
sharename[/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Automatic | No ]
{sharename | devicename | drive:path} /DELETE

NET SHARE makes a server's resources available to network users. When
used without options, it lists information about all resources being
shared on the computer. For each resource, Windows reports the
devicename(s) or pathname(s) and a descriptive comment associated with it.

sharename Is the network name of the shared resource. Type
NET SHARE with a sharename only to display information
about that share.
drive:path Specifies the absolute path of the directory to
be shared.
/USERS:number Sets the maximum number of users who can
simultaneously access the shared resource.
/UNLIMITED Specifies an unlimited number of users can
simultaneously access the shared resource
/REMARK:"text" Adds a descriptive comment about the resource.
Enclose the text in quotation marks.
devicename Is one or more printers (LPT1: through LPT9:)
shared by sharename.
/DELETE Stops sharing the resource.
/CACHE:Automatic Enables offline client caching with automatic reintegration
/CACHE:Manual Enables offline client caching with manual reintegration
/CACHE:No Advises client that offline caching is inappropriate

NET HELP command | MORE displays Help one screen at a time.

by pokvalitov

Joseph, thank you for that great links!
NET SHARE works on local machine, but my case needed remote control, so RMTSHARE have done the trick.

This discussion is closed to new replies.