返回列表 发帖

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

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


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

返回列表