Solved

How do i install a service on a remote PC

Posted on 1998-11-06
8
410 Views
Last Modified: 2013-12-28
I am trying to distribute and install a utility called Remote command prompt (rcmd.exe and rcmdsvc.exe) on some remote servers. the file Rcmdsvc.exe is run as a service and I need to install this file on about 120 machines.       then I need to start the rcmdsvc.exe service "Remote Command
Prompt Service" remotely from a batch process through the command prompt on these 120 machines. My problem is, what utility can I use to do the following tasks
1. Install a service on a remote PC
2. remove a service on a remote PC
3. start or stop a service on a remote PC.
I have used an a small app called serviceu.exe in the past to do this, but i don’t know where i can find this file, or anything similar

0
Comment
Question by:klute
  • 4
  • 2
  • 2
8 Comments
 
LVL 2

Expert Comment

by:livni
ID: 1794425
SrvInstW.exe from the resource kit should do the install/remove

The server manager allows you to stop and start services remotly
0
 
LVL 1

Author Comment

by:klute
ID: 1794426
SrvInstW.exe is a gui program. I dont have the time to start and stop a service and then install a service one machine at a time. I have over 100 machines and i need to do this from a batch file.
I could not get it to work in the past either when i tried to install a service on a remote server, because it tries to pull the exe. file from the local machine that you are on. But the file has to be on the remote server. SrvInstW.exe works perfectly when you try to install a service on a local machine one service at a time..

Thanks for the reply..

 
0
 
LVL 2

Accepted Solution

by:
livni earned 50 total points
ID: 1794427
ok...I understand.

Try to do this:
1. write a script that copies rconsvc.exe to all of your servers
2. also copy instsrv.exe from the resource kit to all of your servers
3. write a script that schdules instsrv at all those severs using
   at \\servername <blah blah blah> "instsrv ...."
0
 
LVL 2

Expert Comment

by:livni
ID: 1794428
I forgot:

in order to stop or start a service in a remote computer,
schedule with at command :
at \\servername <blah blah> "net stop/start <servicename>"
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 2

Expert Comment

by:livni
ID: 1794429
and when I said rconsvc.exe I ment rcmdsvc.exe
sorry...
0
 
LVL 1

Author Comment

by:klute
ID: 1794430
This is another method of ecomplishing what i am trying to do
but it requires more steps and is more time consuming. I guess the root of my question is
where can i attain the file called serviceu.exe or something similiar. That is a dos based app that will alow you to do the following things.
1- start service
2- stop service
3- install service
4- uninstall service
on both the local machine and on the remote machine..


0
 

Expert Comment

by:chris83
ID: 7930857
0
 

Expert Comment

by:chris83
ID: 7930868
well i didn't notice the dates on the other posts, but that link will help anyone with that question
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now