New-SCOrchestratorConnector
建立新的 Service Manager Orchestrator 連接器。
Syntax
New-SCOrchestratorConnector
[[-Description] <String>]
[-Enable <Boolean>]
[-DisplayName] <String>
[-PassThru]
-SCOCredential <PSCredential>
[[-RunAsAccount] <ManagementPackSecureReference>]
[[-SyncFolderPath] <String>]
[-WebServiceURL] <String>
[[-WebConsoleURL] <String>]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
New-SCOrchestratorConnector Cmdlet 會建立Service Manager Orchestrator 連接器。
範例
範例 1:建立Service Manager Orchestrator 連接器
PS C:\>$Credential = Get-Credential
PS C:\>New-SCOrchestratorConnector -DisplayName "SCO Connector" -SCOCredential $Credential -WebServiceURL "http://contososerver:81/Orchestrator2012/Orchestrator.svc" -WebConsoleURL "http://contososerver:82/"
第一個命令會提示您輸入認證,方法是使用 Get-Credential Cmdlet,然後將認證儲存在 $Credential 變數中。
第二個命令會建立Service Manager Orchestrator 連接器。
參數
-ComputerName
指定 System Center 資料存取服務執行所在的電腦名稱。 Credential參數中指定的使用者帳戶必須具有指定電腦的存取權限。
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
在執行 Cmdlet 前提示您確認。
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
指定此 Cmdlet 用來連線到 System Center Data Access 服務執行所在伺服器的認證。 指定的使用者帳戶必須具有該伺服器的存取權限。
Type: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
指定連接器的描述。
Type: | System.String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
指定連接器的顯示名稱。
Type: | System.String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Enable
指出此 Cmdlet 是否啟用或停用連接器。
Type: | System.Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
指出這個 Cmdlet 會傳回這個 Cmdlet 所建立的連接器。 您可以將這個物件傳遞至其他 Cmdlet。
Type: | System.Management.Automation.SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsAccount
指定連接器在執行時所使用的執行身分帳戶。
Type: | Microsoft.EnterpriseManagement.Configuration.ManagementPackSecureReference |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCOCredential
指定用來連線到 Orchestrator Web 服務的使用者帳戶。
Type: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
指定代表 Service Manager 管理伺服器工作階段的物件。
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SyncFolderPath
指定同步處理 Runbook 的 Orchestrator 資料夾路徑。
Type: | System.String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebConsoleURL
指定 Orchestrator Web 主控台的 URL。
Type: | System.String |
Position: | 5 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebServiceURL
指定 Orchestrator Web 服務的 URL。
Type: | System.String |
Position: | 4 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 Cmdlet 並不會執行。
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
None.
您無法使用管線傳送輸入至此 Cmdlet。