Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


October 2003

Remote Command Service

Remotely administer and run command-line programs
RSS
Subscribe to Windows IT Pro | See More Windows NT 4.0 Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

As an IT professional, you'd rather remotely control your system from the comfort of your desk than walk to the server room every time you need to make changes. And you probably also would like to reduce the number of Windows 2000 Server Terminal Services sessions you must open every time you want to run tasks or commands on the system. The Microsoft Windows 2000 Resource Kit's Remote Command Service tool, which lets you remotely administer and run command-line programs, can help you realize those goals.

I work in an environment that has more than 300 servers, about 40 of which are Citrix MetaFrame Windows XP servers. MetaFrame servers provide the same services and therefore tend to be identical in terms of hardware and software, so any changes I make to one server must be replicated to the rest of the servers—in my case, that means 40 Terminal Services or ICA sessions. Remote Command Service gives me an easier and more efficient way to perform these simple tasks. The tool can't perform miracles, but it can remotely handle a lot of the daily administrative tasks that otherwise require local logons. Let's look at some examples of how you can use this tool.

Uses for Remote Command Service
One command I frequently use is Change Logon, which lets you enable or disable user logons to a Terminal Services session. When you set Change Logon to disable, new users can't establish new connections to the server. You can also use this command to determine whether the user logon session mode status is enabled or disabled. Before I installed Remote Command Service, every time I wanted to perform maintenance on a server or prevent user logons to one or more servers, I had to log on and run Change Logon locally or install the Citrix management console locally, then use a GUI. The process was lengthy and required several steps to accomplish one simple task. After I installed Remote Command Service, I could enable, disable, or query any server from a command-line window on my workstation.

You can also use Remote Command Service to obtain a directory listing of files on a particular server (i.e., a simple Dir command) or to share a folder on that server. You can use the tool in conjunction with the Net Share command to remotely share and unshare directories. If you want to map a drive on one or more servers, you can use Remote Command Service with Net Use instead of logging on to the servers. And you can use the tool in scripts to deal with frequently used commands or tasks.

Installing and Using the Tool
To install and use the tool, install a copy of the resource kit on your machine. By default, the resource kit installs in \%systemroot%\Program Files\Resource Kit and stores the Remote Command Service files in a subdirectory named RCMD. The directory will contain two files: rcmd.exe, the file you use to launch the command-line client (you can copy and use this client on any machine from which you want to initiate commands), and rcmdsvc.exe, the server component that you install on every server or workstation you want to run remote commands on. The rcmd.exe file creates a command session, or "virtual console," whenever a client connects to the server. You can simultaneously connect as many as 10 clients to the remote command server on a computer, and all the clients operate securely and independently of one another.

To install rcmdsvc.exe, log on as an administrator to the XP, Win2K, or Windows NT 4.0 machine you want to run remote commands on, copy the file into \%systemroot%winnt\system32, and type

rcmdsvc -install

at the command prompt. To start the service, type

net start rcmdsvc
   Previous  [1]  2  Next 


Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Scripting Whitepapers From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Cutting Costs with Client Management

7 Ways To Get More From Your SharePoint Deployment Now

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement