获取所有支持管道的 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]