检测 Windows 服务是否正在远程机器上运行 [英] Detect if Windows Service is running of remote machine
本文介绍了检测 Windows 服务是否正在远程机器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能的重复:
检查正在运行的服务的状态在使用 C# 的远程计算机中
是否可以使用 C# 检查给定的 Windows 服务是否在远程计算机上运行?
Is it possible to check if a given windows service is running on a remote machine using C#?
这是假设我拥有该机器的正确登录凭据.
This is assuming that I have the correct login credentials for that machine.
推荐答案
WMI,如果您使用的是 C# 或 VB.Net
WMI, if you're using C# or VB.Net
否则,SC" 可能是从命令行或 .bat 文件使用的最佳工具.
Otherwise, "SC" is probably the best tool to use from a command line or .bat file.
这篇关于检测 Windows 服务是否正在远程机器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文