【问题标题】:Get commands by two criteria通过两个条件获取命令
【发布时间】:2017-02-15 06:13:30
【问题描述】:

我们如何执行 Get-Command 命令来获取两个条件的结果?让我们这样说:我想在一次执行中获取以 AddGet

开头的命令列表

Get-Command 命令的文档指出-Verb 属性接受多个动词或动词模式,但我不明白怎么做?

【问题讨论】:

    标签: powershell


    【解决方案1】:

    对我来说,它是这样工作的:

    Get-Command -verb Get,Add
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多