Import-CMConfigurationItem
Updated: March 1, 2013
Applies To: System Center 2012 Configuration Manager SP1
Import-CMConfigurationItem
Syntax
Parameter Set: ImportByFileName Import-CMConfigurationItem -FileName <String[]> [-DuplicateWhileImporting] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Import-CMConfigurationItem cmdlet imports Microsoft System Center 2012 Configuration Manager configuration items from one or more cabinet files. The files that you import must conform to the Service Modeling Language (SML) schema and can contain information about configuration data from one of the following sources:
-- Best practices from a Microsoft System Center 2012 Configuration Manager Configuration Pack.
-- Configuration data that you have externally authored and packaged into a cabinet (.cab) file
-- Configuration data exported from System Center 2012 Configuration Manager.
Configuration items contain one or more settings, along with compliance rules. Items usually define a unit of configuration you want to monitor.
Parameters
-DuplicateWhileImporting
Indicates that Configuration Manager imports configuration items that exist in Configuration Manager as duplicate configuration items.
Use this parameter to create a configuration item when you want an exact copy of an configuration item that you import to use as your starting point, but you want to modify it to create an independent configuration item from the original.
Aliases | none |
Required? | false |
Position? | named |
Default Value | none |
Accept Pipeline Input? | True (ByPropertyName) |
Accept Wildcard Characters? | false |
-FileName<String[]>
Specifies an array of names of cabinet (cab) files.
Aliases | none |
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: Import configuration items
This command imports configuration items from the files 7389_OSCI.cab and 7452OS_1.cab.
PS C:\> Import-CMConfigurationItem -FileName "\\atc-dist-01\Public\CM\AdminUITeam\CIData\7389_OSCI.cab","\\atc-dist-01\Public\CM\AdminUITeam\CIData\7452OS_1.cab"
Example 2: Import configuration items and create duplicate configuration items
This command imports configuration items from the files 7389_OSCI.cab and 7452OS_1.cab. The DuplicateWhileImporting parameter indicates that imports configuration items that exist in System Center 2012 Configuration Manager as duplicate configuration items.
PS C:\> Import-CMConfigurationItem -FileName "\\Contoso01\Public\CM\7389_OSCI.cab","\\ Contoso01\Public\CM\7452OS_1.cab" -DuplicateWhileImporting
