Export (0) Print
Expand All
Expand Minimize

Get-CMConfigurationItem

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Get-CMConfigurationItem

Gets Configuration Manager configuration items.

Syntax

Parameter Set: SearchByName
Get-CMConfigurationItem [-Name <String[]> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMConfigurationItem -Id <String[]> [ <CommonParameters>]




Detailed Description

The Get-CMConfigurationItem cmdlet gets configuration item objects in Microsoft System Center 2012 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. Items usually define a unit of configuration you want to. For more information about configuration items, see Introduction to Compliance Settings in Configuration Manager (http://go.microsoft.com/fwlink/?LinkId=211014).

Parameters

-Id<String[]>

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


Aliases

CIId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

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


Aliases

LocalizedDisplayName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get an item using a name

This command gets a configuration item named ConfigItem76.


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

Example 2: Get an item to use with another cmdlet

This example removes a configuration item.

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.


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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft