New-SCADConnector
New-SCADConnector
Creates a Service Manager Active Directory connector.
構文
Parameter Set: Default
New-SCADConnector [-DisplayName] <String> [[-Description] <String> ] [[-QueryRoot] <String> ] [[-RunAsAccount] <ManagementPackSecureReference> ] -ADCredential <PSCredential> [-ComputerFilter <String> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Enable <Boolean> ] [-ExpandGroups] [-PassThru] [-PrinterFilter <String> ] [-ScheduleDay <DaySchedule> ] [-ScheduleHour <Int32> ] [-SCSession <Connection[]> ] [-SyncNow] [-UserFilter <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The New-SCADConnector cmdlet creates a Service Manager Active Directory connector.
The following parameters are only available if you have applied Service Manager 2012 R2 Update Rollup 6 or later.
-- ScheduleDay
-- ScheduleHour
パラメーター
-ADCredential<PSCredential>
Specifies the credential to use when connecting to the domain controller.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ComputerFilter<String>
Specifies a filter that is used to select the computers to be synchronized by the connector. The filter must be specified as an Active Directory filter. For example, the following filter includes all computers which begin with win
in the synchronization:
(name=win*)
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
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 |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
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 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Description<String>
Specifies a description for the connector.
エイリアス |
なし |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DisplayName<String>
Specifies the display name property of the connector.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Enable<Boolean>
Indicates whether this cmdlet enables or disables the connector.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
True |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ExpandGroups
Specifies that this cmdlet recursively includes members of the groups that are specified by the UserFilter parameter.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PassThru
Specifies the output object that represents the new Active Directory connector. This output object can be passed to other cmdlets.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PrinterFilter<String>
Specifies a filter that is used to select the printers to be synchronized by the connector.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-QueryRoot<String>
Specifies the Active Directory folder from which objects should be queried, such as LDAP://DC=scsm,DC=stbtest,DC=microsoft,DC=com.
エイリアス |
なし |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RunAsAccount<ManagementPackSecureReference>
Specifies the RunAs account to use when using this connector.
エイリアス |
なし |
必須? |
false |
位置は? |
4 |
既定値 |
Daily |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ScheduleDay<DaySchedule>
Specifies the day of the week on which the connector synchronizes. Valid values are:
-- Daily
-- Sunday
-- Monday
-- Tuesday
-- Wednesday
-- Thursday
-- Friday
-- Saturday
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
Daily |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ScheduleHour<Int32>
Specifies the hour at which the connector starts synchronization. The value must be a number from zero (0) to 23.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
2 |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SCSession<Connection[]>
Specifies an object that represents the session to a Service Manager management server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SyncNow
Causes the Active Directory connector to start a synchronization cycle.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UserFilter<String>
Specifies the filter that is used to select the users to by synchronized by the connector. You must specify the value in the form of an Active Directory filter. For example, the following value for this parameter includes in the synchronization users whose givenName starts with a
:
(givenname=a*)
エイリアス |
なし |
必須? |
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 to the local domain
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 prompts you for credentials by using the Get-Credential cmdlet, and then stores the credentials in the $Credential variable.
The final command creates an Active Directory connector to the local domain, which retrieves all computers, printers, users, and user groups. The connector is configured to synchronize every Sunday at 3:00 A.M.
PS C:\> $RunAsAccount = Get-SCSMRunAsAccount -DisplayName "Workflow Account"
PS C:\> $Credential = Get-Credential
PS C:\> New-SCADConnector -DisplayName "Contoso AD Connector" -Description "Contoso AD Connector" -QueryRoot "LDAP://DC=Contoso,DC=com" -RunAsAccount $RunAsAccount -ADCredential $Credential -Enable $False -ScheduleDay Sunday -ScheduleHour 3
Example 2: Create a connector to the local domain that includes a user filter
The first command gets a Run As account for Workflow Account, and then stores it in the $RunAsAccount variable.
The second command prompts you for credentials by using the Get-Credential cmdlet, and then stores the credentials in the $Credential variable.
The final command creates an Active Directory connector to the local domain which retrieves only the users that start with the letter E.
PS C:\> $RunAsAccount = Get-SCSMRunAsAccount -DisplayName "Workflow Account"
PS C:\> $Credential = Get-Credential
PS C:\> New-SCADConnector -DisplayName "Contoso AD Connector" -Description "Contoso users starting with E" -QueryRoot "LDAP://DC=Contoso,DC=com" -RunAsAccount $RunAsAccount -ADCredential $Credential -Enable $False -UserFilter "(givenname=E*)"