New-SCCMConnector
New-SCCMConnector
Creates a Configuration Manager connector in Service Manager.
構文
Parameter Set: Default
New-SCCMConnector [-DisplayName] <String> [[-Description] <String> ] -DatabaseName <String> -DatabaseServer <String> -SCCMCredential <PSCredential> [-Collections <String[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Enable <Boolean> ] [-PassThru] [-RunAsAccount <ManagementPackSecureReference> ] [-ScheduleDay <DaySchedule> ] [-ScheduleHour <Int32> ] [-SCSession <Connection[]> ] [-SolutionManagementPack <ManagementPack[]> ] [-SyncNow] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The New-SCCMConnector cmdlet creates a Configuration Manager connector in Service Manager.
パラメーター
-Collections<String[]>
Specifies the name of the Configuration Manager collections to synchronize.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
All Collections |
パイプライン入力を許可する |
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 |
-DatabaseName<String>
Specifies the name of the Configuration Manager database.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DatabaseServer<String>
Specifies the name of the Configuration Manager database server.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Description<String>
Specifies a description for the connector.
エイリアス |
なし |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DisplayName<String>
Specifies the name of the connector.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Enable<Boolean>
Indicates whether this cmdlet enables or disables the connector.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
True |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PassThru
Returns an object that represents the new Configuration Manager connector. This output object can be passed to other cmdlets.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RunAsAccount<ManagementPackSecureReference>
Specifies the Run As account that the connector uses when it runs.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
Operational System Account |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SCCMCredential<PSCredential>
Specifies the credential to use when you connect to the Configuration Manager server to validate the collections that have to be synchronized.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SCSession<Connection[]>
Specifies an object that represents the session to a Service Manager management server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-ScheduleDay<DaySchedule>
Specifies the day of the week on which the connector will synchronize. Valid values are:
-- Daily
-- Sunday
-- Monday
-- Tuesday
-- Wednesday
-- Thursday
-- Friday
-- Saturday
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
All |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ScheduleHour<Int32>
Specifies the hour at which the connector will start synchronization. The value must be a number between 0-23.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
2 |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SolutionManagementPack<ManagementPack[]>
Specifies the solution name.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SyncNow
Indicates that this cmdlet starts a Connection Manager connector synchronization.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
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: Create a connector
The first command gets a Run As account for Workflow Account by using the Get-SCSMRunAsAccount cmdlet. The command stores the result in the $RunAsAccount variable.
The second command creates a Configuration Manager connector to the database server CMServer. The new connector is configured to synchronize every Sunday at 3:00 A.M.
PS C:\> $RunAsAccount = Get-SCSMRunAsAccount -DisplayName "Workflow Account"
PS C:\> New-SCCMConnector -DisplayName "WOODGROVE CM CONNECTOR" -Description "Woodgrove Configuration Manager connection" -DatabaseName "SMS_DFD" -DatabaseServer "CMServer" -Collections "SCCMDF" -Enable $False -RunAsAccount $RunAsAccount -ScheduleDay Sunday -ScheduleHour 3