Test-IsCrescendoCommand
Tests whether a cmdlet was created by Crescendo.
Syntax
Default (Default)
Test-IsCrescendoCommand
[-Command] <Object[]>
[<CommonParameters>]
Description
Tests a cmdlet to see if it was created by Crescendo.
Examples
Example 1 - Test various cmdlet to see if they were created by 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
Parameters
-Command
The name of the cmdlet to test.
Parameter properties
| Type: | Object[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.