Import-SCSMInstance
Import-SCSMInstance
Imports objects and relationships from a .csv file into Service Manager.
構文
Parameter Set: Default
Import-SCSMInstance -DataFileName <String> -FormatFileName <String> [-BatchSize <Int32> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Import-SCSMInstance cmdlet imports objects and relationships from a comma-separated value (.csv) file into Service Manager.
Two parameters must be set to import instances in bulk into Service Manager:
-- DataFileName, which must contain the file path of a .csv file that contains the instance data.
-- FormatFileName, which must contain the file path of an .xml file that defines the format of the .csv file.
The optional BatchSize parameter specifies the number of objects or projection instances that will be committed on each database write.
パラメーター
-BatchSize<Int32>
Specifies the number of objects or projection instances that will be committed on each database write. This value must be an integer between 1 and 5000. The default value is 50.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
50 |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ComputerName<String[]>
Specifies the name of the computer on which the System Center Data Access service runs. The user account that is specified in the Credential parameter must have access rights to the specified computer.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
localhost |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Credential<PSCredential>
Specifies the credentials that this cmdlet uses to connect to the server on which the System Center Data Access service runs. The specified user account must have access rights to that server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-DataFileName<String>
Specifies the file path of the .csv file that contains the instance data.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-FormatFileName<String>
Specifies the file path of an .xml file in which the format of the .csv file is defined.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SCSession<Connection[]>
Specifies an object that represents the session to a Service Manager management server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
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)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
None.
You cannot pipe input to this cmdlet.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
None.
This cmdlet does not generate any output.
例
Example 1: Import computer projections
This command imports computer projections from the file named computers.csv. The command imports 100 rows at a time.
PS C:\>Import-SCSMInstance -FormatFileName "computers.xml" -DataFileName "computers.csv" -BatchSize 100