Test-IsCrescendoCommand
测试 Cmdlet 是否由 Crescendo 创建。
语法
Default (默认值)
Test-IsCrescendoCommand
[-Command] <Object[]>
[<CommonParameters>]
说明
测试 cmdlet,以查看它是否由 Crescendo 创建。
示例
示例 1 - 测试各种 cmdlet,以查看它们是否由 Crescendo 创建
Test-IsCrescendoCommand Get-Command
Test-IsCrescendoCommand: 'Get-Command' is not a function
Test-IsCrescendoCommand Expand-Archive
Module: Microsoft.PowerShell.Archive
Name IsCrescendoCommand RequiresElevation
---- ------------------ -----------------
Expand-Archive False False
Test-IsCrescendoCommand Get-VssProvider
Module: VssAdmin
Name IsCrescendoCommand RequiresElevation
---- ------------------ -----------------
Get-VssProvider True False
参数
-Command
要测试的 cmdlet 的名称。
参数属性
| 类型: | Object[] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。