JSI Tip 1951. How do I install the Remote Command Service, remotely?

Jerold Schulman

January 10, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today


The Remote Command Service, from the Server Resource Kit and Supplement 4, is a tool that provides a secure way to remotely run command line programs. I quote:

Remote Command Service consists of client and server components. The client is a command-line program, Rcmd.exe. The server end, Rcmdsvc.exe, is installed and run as a service. That is, it can be stopped and started locally or remotely via the Control Panel Network application, or locally with the NET START and NET STOP commands. As a service, if configured to start automatically, it will run whenever the system is running, independently of whether a user is locally logged on.

A command session, or "virtual console," is created when a client connects to the server. It is not visible on the desktop, and does not in any way interfere with it. Up to ten clients may be simultaneously connected to the remote command server on a computer, all operating securely and independently of each other.

To install the service remotely, first copy the rcmd*.exe files to %SystemRoot%System32 and instsrv.exe to %SystemRoot%, on your distribution server. Then run:

RCMDinstall.bat RemoteServerName

where RCMDinstall.bat contains:

@echo Offif "%1"=="" goto syntaxsetlocalset srv=%1set loc=\%srv%Admin$copy %SystemRoot%System32rcmd*.exe %loc%System32copy %SystemRoot%instsrv.exe %loc%@echo %%SystemRoot%%instsrv.exe "Remote Command Server" %%SystemRoot%%System32rcmdsvc.exe > %loc%rcmdinst.bat@echo exit >> %loc%rcmdinst.batsoon \%srv% cmd /c "%loc%rcmdinst.bat" endlocalexit:syntax@echo A ServerName is required.exit


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like