批处理之家's Archiver

victorwoo 发表于 2014-10-27 11:03

获取所有支持管道的 Cmdlet

原始链接:[url=http://blog.vichamp.com/powershell/2014/10/21/List-Cmdlets-Support-Pipeline/]获取所有支持管道的 Cmdlet[/url]
发表日期:2014-10-21
[hr]
用这段代码可以获取所有支持管道的 PowerShell 命令:[code]
Get-Command -CommandType Cmdlet | Where-Object {
    $_.Parameters.Values | Where-Object {
        $_.Attributes.ValueFromPipeline
    }
}
[/code]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.