【问题标题】:How to get the first element in the collection with appcmd.exe?如何使用 appcmd.exe 获取集合中的第一个元素?
【发布时间】:2020-02-27 14:40:40
【问题描述】:

我需要获得应用程序池的回收时间。 我不能使用 powershell,所以我为此使用了 appcmd.exe。我发现有一个命令:

%windir%\System32\inetsrv\appcmd.exe  LIST APPPOOL test /text:recycling.periodicRestart.schedule.[value='08:23:00'].value

但是我需要指定时间来接收那个时间的问题:

因此,现在它可以检查是否已在特定时间安排回收。 我想 appcmd 将此数据作为一个集合使用。有什么办法可以拿到第一件吗?

【问题讨论】:

    标签: iis appcmd


    【解决方案1】:

    以下命令将显示 IIS 应用程序池配置设置:

    APPCMD LIST APPPOOL "sample1" /config
    

    %systemroot%\system32\inetsrv\APPCMD list apppool "sample1" /text:*
    

    【讨论】:

      猜你喜欢
      • 2021-12-08
      • 1970-01-01
      • 2014-08-19
      • 2017-03-11
      • 2018-05-02
      • 1970-01-01
      • 2015-11-23
      • 1970-01-01
      • 2014-10-07
      相关资源
      最近更新 更多