返回列表 发帖

[原创教程] 获取所有支持管道的 Cmdlet

原始链接:获取所有支持管道的 Cmdlet
发表日期:2014-10-21


用这段代码可以获取所有支持管道的 PowerShell 命令:
  1. Get-Command -CommandType Cmdlet | Where-Object {
  2.     $_.Parameters.Values | Where-Object {
  3.         $_.Attributes.ValueFromPipeline
  4.     }
  5. }
复制代码
PowerShell 群:271143343

返回列表