【问题标题】:How to list and retrieve all IIS web server instances on a network?如何列出和检索网络上的所有 IIS Web 服务器实例?
【发布时间】:2013-11-05 16:23:26
【问题描述】:

我想知道 C# 应用程序是否可以列出和检索连接网络上的所有 IIS 实例。

我知道可以使用 SqlServer 恢复所有实例

EnumAvailableSqlServers method in the SMO

但我不知道 IIS 是否存在类似的方法。我已经尝试在互联网上搜索,但我找不到关于它的答案。

非常感谢。

【问题讨论】:

    标签: c# .net iis


    【解决方案1】:
    Get-Service IIS* -computer ... #(all computers in the domain or on the network)
    

    虽然这是 powershell,但您可以从 C# 执行它,看这里:Execute PowerShell Script from C# with Commandline Arguments 或这里:Invoking powershell cmdlets from C#

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-07-26
      • 1970-01-01
      • 2017-06-03
      • 2013-06-29
      • 1970-01-01
      • 2014-09-13
      • 1970-01-01
      相关资源
      最近更新 更多