Edit

Share via


ConvertFrom-CMApplication

Converts an application SDK object to an application object.

Syntax

Default (Default)

ConvertFrom-CMApplication
    -InputObject <Application>
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [<CommonParameters>]

Description

The ConvertFrom-CMApplication cmdlet converts 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: Convert an application object

PS XYZ:\> $SdkApp = Get-CMApplication -Name "Application01" | ConvertTo-CMApplication
PS XYZ:\> $SdkApp | ConvertFrom-CMApplication

The first command gets the application object named Application01 and uses the pipeline operator to pass the object to ConvertTo-CMApplication, which converts the application object into an application SDK object. The command then stores the object in the $SdkApp variable.

The second command converts the application SDK object stored in $SdkApp to an application object.

Example 2: Convert an application object

PS XYZ:\> $SdkApp = Get-CMApplication -Name "Application02" | ConvertTo-CMApplication
PS XYZ:\> ConvertFrom-CMApplication -InputObject $SdkApp

The first command gets the application object named Application02 and uses the pipeline operator to pass the object to ConvertTo-CMApplication, which converts the application object into an application SDK object. The command then stores the object in the $SdkApp variable.

The second command converts the application SDK object stored 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 SDK object. To obtain an application object, use the ConvertTo-CMApplication cmdlet or the Convert-CMApplication cmdlet.

Parameter properties

Type:Application
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Application

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.

Inputs

Microsoft.ConfigurationManagement.ApplicationManagement.Application

Outputs

System.Object