Is there a way to start / stop a windows service of a server in a different network
(not \\<server name>
) from an asp.net page?
I tried using ServiceController but it's only work if it's in the same network.
Is there a way to start / stop a windows service of a server in a different network
(not \\<server name>
) from an asp.net page?
I tried using ServiceController but it's only work if it's in the same network.
RE: ServiceController How to Start/Stop a Windows Service from an ASP.NET app - Security issues
Anything you can do from command line or powershell can be ran from a page (assuming the app pool user has correct permissions etc)
Powershell is probably your best bet for managing services on a remote server though this will require the server to allow remote powershell.
and of course for the topic of powershell resetting/stopping remote services.
Google is definitely your friend on this one :)