Convert-CMApplication
Converts an application object.
Syntax
Default (Default)
Convert-CMApplication
-InputObject <PSObject>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
The Convert-CMApplication cmdlet converts an application object to an application SDK object or an application SDK object to an application object.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Get an application object and convert it
PS XYZ:\> Get-CMApplication -ApplicationName "Application01" | Convert-CMApplication
This command gets the application object named Applicaton01 and uses the pipeline operator to pass the object to Convert-CMApplication, which converts the application object to an application SDK object.
Example 2: Get an SDK application object and convert it
PS XYZ:\> $SdkApp = ConvertTo-CMApplication -InputObject (Get-CMApplication -ApplicationName "Application01")
PS XYZ:\> Convert-CMApplication -InputObject $SdkApp
The first command converts the application named Application01 to an application SDK object and stores the object in the $SdkApp variable.
The second command converts the SDK application object in $SdkApp to an application object.
Parameters
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-InputObject
Specifies an application object or application SDK object. To obtain an application object, use the Get-CMApplication cmdlet. To obtain an application SDK object, use the ConvertTo-CMApplication cmdlet.
Parameter properties
Type: | PSObject |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | IResultObject, Application, ProviderApplicationObject, ApplicationGroup |
Parameter sets
(All)
Position: | Named |
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.