ConvertFrom-CMConfigurationItem

Converts a Configuration Manager configuration item to a string.

Syntax

ConvertFrom-CMConfigurationItem
           [-ConfigurationItem <ConfigurationItem>]
           [-DisableWildcardHandling]
           [-ForceWildcardHandling]
           [<CommonParameters>]

Description

The ConvertFrom-CMConfigurationItem cmdlet converts a ConfigurationItem object into a string which contains the XML definition of the ConfigurationItem object.

Parameters

-ConfigurationItem

Specifies a configuration item.

Type:ConfigurationItem
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Inputs

Microsoft.ConfigurationManagement.DesiredConfigurationManagement.ConfigurationItem

Outputs

System.String