Import-CMConfigurationItem
Import-CMConfigurationItem
Imports Configuration Manager configuration items.
構文
Parameter Set: ImportByFileName
Import-CMConfigurationItem -FileName <String[]> [-DuplicateWhileImporting] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
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 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.
パラメーター
-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.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-FileName<String[]>
Specifies an array of names of cabinet (cab) files.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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