如何使用C#远程检查服务启动类型 [英] How to Check the Service Startup type Using C# remotely

查看:82
本文介绍了如何使用C#远程检查服务启动类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能告诉我如何使用C#和ASP.Net
检查服务另一个系统中的启动类型.

问候,
Prabhu P

Hi All,

Can anybody tell me how to check the service StartUp type which is in Another System using C# with ASP.Net


Regards,
Prabhu P

推荐答案

您是否尝试过此方法此处 [^ ]?

问候,

Manfred
Have you tried this method here[^]?

Regards,

Manfred


您可以使用 ServiceController [ ^ ]类甚至在远程服务器上也可以访问服务.
这也是一个很好的起点: http://www.geekpedia.com/tutorial225_Listing-Services-with- Csharp.html [ ^ ].
You can use ServiceController[^] class to access services even on remote server.
This is also a good starting point: http://www.geekpedia.com/tutorial225_Listing-Services-with-Csharp.html[^].


如果安装了远程应用程序,则可以使用PowerShell.可以轻松地将Powershell与C#接口.请参阅如何从C#运行PowerShell脚本 [ ^ ].
Can use PowerShell if you have the remote app installed. Can easily interface Powershell to C#. See How to run PowerShell scripts from C#[^].


这篇关于如何使用C#远程检查服务启动类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆