473,320 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Controlling Windows Services Remotely

Imagine this scenario:

I have 3 servers: A, B, and C. These servers are in remote locations across
the country not easily accessible. On each of these servers, I have a
windows service running, which I programmed myself. I also have a central
server at my location. Is there a way that I can change the code on my
windows services to be able to stop and start them remotely from my central
server (possibly using another program that I create). Can this be done by
re-coding and using .NET remoting? If so, how? Are there any good
tutorials showing this?

Thanks for any advice.

-Jason
Nov 21 '05 #1
2 1323
On 2005-03-09, OpticTygre <op********@adelphia.net> wrote:
Imagine this scenario:

I have 3 servers: A, B, and C. These servers are in remote locations across
the country not easily accessible. On each of these servers, I have a
windows service running, which I programmed myself. I also have a central
server at my location. Is there a way that I can change the code on my
windows services to be able to stop and start them remotely from my central
server (possibly using another program that I create). Can this be done by
re-coding and using .NET remoting? If so, how? Are there any good
tutorials showing this?

Thanks for any advice.

-Jason


I'm not sure if this helps you or not, but you can remotely control
services (as long as you have permissions to do so) using the
ServiceControler class provided in System.ServiceProcess namespace.

You would just use the constructor that takes the service name and the
machine name, and then you can Start, Stop, Pause, or send custom
commands to that service. Something to look into anyway :)

--
Tom Shelton [MVP]
Nov 21 '05 #2
Thanks for the reply, Tom. Is it possible to do that without the machine
name, and by using the IP address of the machine instead? I'll have to do
some testing to find out if this solution will work or not.

-Jason

I'm not sure if this helps you or not, but you can remotely control
services (as long as you have permissions to do so) using the
ServiceControler class provided in System.ServiceProcess namespace.

You would just use the constructor that takes the service name and the
machine name, and then you can Start, Stop, Pause, or send custom
commands to that service. Something to look into anyway :)

--
Tom Shelton [MVP]

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: webmaster | last post by:
Hello, Is there any way to controll windows services from visual c++ 6.0? Regards, webmaster
3
by: Ann Marinas | last post by:
Hi, All! I would like to ask about Windows Services and Web Services.... I was kinda intrigued about what these two technologies do, and would like to know the difference of each. Thank you...
12
by: Michael Riggio | last post by:
Is there a way to have a windows service instantiate a class that is a web service, which will then be accessible to clients via HTTP? Thanks, -Mike
3
by: A. K. Bhardwaj | last post by:
Hi everybody, I wanted to develop a windows based application in C# which will use remotely located SQL server via internet. Please tell me how to do this .. as i don't have the any idea about...
4
by: Blaxer | last post by:
I have read approximately 30 articles now on various methods to make your vb.net application automatically update itself and I can't see how they apply to a vb.net windows services projects. The...
4
by: graphicsxp | last post by:
Hi, I've written a windows service in vb.net, which works very well. The service is installed on my server, but now I would like to be able to start/stop it from any machine on the network. I...
3
by: kj7ny | last post by:
How can I access and manipulate Scheduled Tasks in Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on...
3
by: Sylvie | last post by:
My Windows Application has two forms, one form contains a grid (lets say Stock Listing), and the other is a form of one stock, contains some edit boxes for one stock's fields.. Is it possible to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.