Get-CMConfigurationItem

Gets Configuration Manager configuration items.

Syntax

Get-CMConfigurationItem
   [-Id] <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMConfigurationItem [[-Name] ] [-DisableWildcardHandling] [-ForceWildcardHandling]
 []

Description

The Get-CMConfigurationItem cmdlet gets configuration item objects in Microsoft System Center Configuration Manager. You can use this cmdlet to get items for other cmdlets to use. For instance, you might get configuration items so you can use the Set-CMConfigurationItem to change settings on them.

Configuration items contain one or more settings, along with compliance rules. For more information about configuration items, see Introduction to Compliance Settings in Configuration Manager on TechNet.

Examples

Example 1: Get an item using a name

PS C:\> Get-CMConfigurationItem -Name "ConfigItem76"

This command gets a configuration item named ConfigItem76.

Example 2: Get an item to use with another cmdlet

PS C:\> $CIObj=Get-CMConfigurationItem -Id "16777568"
PS C:\> Remove-CMConfigurationItem -InputObject $CIObj

The first command gets a configuration item with the specified identifier and stores it in the $CIObj variable.

The second command removes the item in the $CIObj variable.

Required Parameters

-Id

Specifies an array of identifiers for one or more configuration items. You can use a comma separated list.

Type:Int32
Aliases:CIId, CI_ID
Required:True
Position:0
Default value:None
Accept pipeline input:False
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
-Name

Specifies an array of names of configuration items. You can use a comma separated list.

Type:String
Aliases:LocalizedDisplayName
Required:False
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False