Export (0) Print
Expand All
Expand Minimize

Remove-CMConfigurationItem

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Remove-CMConfigurationItem

Removes configuration items from Configuration Manager.

Syntax

Parameter Set: SearchByIdMandatory
Remove-CMConfigurationItem -Id <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Remove-CMConfigurationItem -Name <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Remove-CMConfigurationItem -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-CMConfigurationItem cmdlet removes specified configuration items from Microsoft System Center 2012 Configuration Manager. You can specify items by ID, name, or by use of the Get-CMConfigurationItem cmdlet.

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) on TechNet.

Parameters

-Force

Performs the action without a confirmation message.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-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

-InputObject<IResultObject>

Specifies a configuration item object. To obtain a configuration item object, you can use the Get-CMConfigurationItem cmdlet.


Aliases

none

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.


Aliases

LocalizedDisplayName

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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: Remove an item using an ID

This command removes a configuration item with the specified identifier.


PS C:\> Remove-CMConfigurationItem -Id "16777568"

Example 2: Remove an item using a name

This command removes a configuration item named ConfigItem76.


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

Example 3: Remove an item using a variable

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