473,657 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Website that will allow a user to restart a service on another computer.

I have a website that does all kinds of maint. functions for our systems.
One of the things I'd like to do is be able to restart a service that's on
another computer. Can somebody point me in the right direction to do that?

I think there may be issues of user privileges.

TIA - Jeff.
Jul 23 '07 #1
3 1400
The application will have to log on to the other computer using an account
with the necessary priveleges.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Mufasa" <jb@nowhere.com wrote in message
news:uv******** ********@TK2MSF TNGP05.phx.gbl. ..
>I have a website that does all kinds of maint. functions for our systems.
One of the things I'd like to do is be able to restart a service that's on
another computer. Can somebody point me in the right direction to do that?

I think there may be issues of user privileges.

TIA - Jeff.


Jul 23 '07 #2
Take a look at the ServiceControll er class. It is there to enable us to
programmaticall y access and control Windows services. One overload lets you
specify both the service and machine
(http://msdn2.microsoft.com/en-us/library/ssbk2tf3.aspx)

-HTH

"Mufasa" <jb@nowhere.com wrote in message
news:uv******** ********@TK2MSF TNGP05.phx.gbl. ..
>I have a website that does all kinds of maint. functions for our systems.
One of the things I'd like to do is be able to restart a service that's on
another computer. Can somebody point me in the right direction to do that?

I think there may be issues of user privileges.

TIA - Jeff.


Jul 23 '07 #3
Hi,

"Mufasa" <jb@nowhere.com wrote in message
news:uv******** ********@TK2MSF TNGP05.phx.gbl. ..
>I have a website that does all kinds of maint. functions for our systems.
One of the things I'd like to do is be able to restart a service that's on
another computer. Can somebody point me in the right direction to do that?

I think there may be issues of user privileges.
You can use ServiceControll er to control a service. Of course you need your
app to have admin. priv. You can do so by impersonate.
Jul 23 '07 #4

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

Similar topics

7
2036
by: wrytat | last post by:
Hi! I'm very new to ASP.NET and really need some good advice from experts here. I'm creating a web application for my company now. This application has 2 parts. 1 part for the customers to access. The 2nd part is for our staff to access only. My director hopes to make the 2nd part to be something like an intranet, such that only our company's computers (maybe only 1 or 2 in the company) can login to this part of the application. 1. My...
0
999
by: Tedmond | last post by:
Dear all, I want to restart a service on another PC using ServiceController class. However, I got the following error. Cannot start service XXXXX on computer xxxx How can I solve it? Thanks for any help!
13
1817
by: Peter Chant | last post by:
I'm considering setting a website up for a club. I do not plan the contents to be for public consumption, but on the other hand I'm not going to have anything on there that is confidential, that would cause a problem if it went further. The basic reason is for publicity of club events. I want to make it easy to use. I suspect a login with a password would be too much effort for most people. I also note that computer literacy is not a...
7
1716
by: clintonG | last post by:
I'm puzzled and don't think this is possible but if an application that is running on websiteA generates a file can FTP be used from websiteA to transfer that file to websiteB which would be located on another server? -- <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://www.metromilwaukee.com/clintongallagher/
10
2187
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is sql server. I have deployed the web application in the internal server. It is not able to access the sql server that is on another server. If I deploy the same application on IIS, it is working fine. How should I set up the web application in the...
7
7665
by: Atul | last post by:
Hi Theres a website that books hotels . user enters the information and according to that results are displayed to the user.Let it be website A. Now I want to create a new project with designing page same as in website A. But wen user clicks on submit button on my website then the same process occurs as is happening when user clicks submit button in
5
2689
by: rockdale | last post by:
Hi, all: I have a website with its own login page. Now one of my clients want their employees log into my website from their website. They want to have their login page (look and feel are different and hosted on another web server) and then send the user id and pwd to my login page. What is the best to do this? Pass the user id and pwd on the url is not a solution since everybody will see the user's credential.
3
2779
by: =?Utf-8?B?SGVyYg==?= | last post by:
Can I use the Website Administration tool to manage users and roles for multiple ASP.NET applications using a single, common ASPNETDB? If so, what changes do I have to make to the web.config files for these various applications to allow authentication from that single ASPNETDB. I'd also like to be able to maintain the users/roles and application access from the web server rather than from my development computer. Right now it seems...
0
1876
by: cosmo | last post by:
Hello, I would like to develop a: - Windows Service for doing specific Tasks - Web Service as a communication gateway between the Windows Service and a ASP.NET Website - ASP.NET Website The scenario: A user clicks a button on a ASP.NET website to get some forecast. The button invokes a web service method i.e. GetForecast(). Now the web method calls a task method on the Windows Service. Finally the windows service returns a result...
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8833
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8610
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6174
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.