ConvertTo-CMApplication

Converts an application object to an application SDK object.

Syntax

ConvertTo-CMApplication
         [-DisableWildcardHandling]
         [-ForceWildcardHandling]
         -InputObject <IResultObject>
         [<CommonParameters>]

Description

The ConvertTo-CMApplication cmdlet converts an application object to an application SDK object.

Examples

Example 1: Get an application and convert it

PS C:\> Get-CMApplication -Name "Application01" | ConvertTo-CMApplication

This command gets the application object named Application01 and uses the pipeline operator to pass the object to ConvertTo-CMApplication, which converts the application object to an application SDK object.

Example 2: Convert an application

PS C:\>ConvertTo-CMApplication -InputObject (Get-CMApplication -Name "Application02")

This command gets the application object named Application02 and converts the application object to an application SDK object.

Required Parameters

-InputObject

Specifies an application object. To obtain an application object, use the Get-CMApplication cmdlet.

Type:IResultObject
Aliases:Application, DeploymentType
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False