共用方式為


New-SCOrchestratorConnector

建立新的 Service Manager Orchestrator 連接器。

語法

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 參數中指定的使用者帳戶必須具有指定計算機的訪問許可權。

類型:System.String[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:System.Management.Automation.SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-Credential

指定此 Cmdlet 用來連線到 System Center 資料存取服務執行所在的伺服器認證。 指定的使用者帳戶必須具有該伺服器的訪問許可權。

類型:System.Management.Automation.PSCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Description

指定連接器的描述。

類型:System.String
Position:1
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DisplayName

指定連接器的顯示名稱。

類型:System.String
Position:0
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Enable

指出此 Cmdlet 是否啟用或停用連接器。

類型:System.Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-PassThru

指出此 Cmdlet 會傳回此 Cmdlet 所建立的連接器。 您可以將這個物件傳遞至其他 Cmdlet。

類型:System.Management.Automation.SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-RunAsAccount

指定連接器在執行時所使用的執行身分帳戶。

類型:Microsoft.EnterpriseManagement.Configuration.ManagementPackSecureReference
Position:2
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-SCOCredential

指定用來連線到 Orchestrator Web 服務的用戶帳戶。

類型:System.Management.Automation.PSCredential
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SCSession

指定物件,表示 Service Manager 管理伺服器的會話。

類型:Microsoft.SystemCenter.Core.Connection.Connection[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-SyncFolderPath

指定從中同步處理 Runbook 的 Orchestrator 資料夾路徑。

類型:System.String
Position:3
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WebConsoleURL

指定 Orchestrator Web 控制台的 URL。

類型:System.String
Position:5
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WebServiceURL

指定 Orchestrator Web 服務的 URL。

類型:System.String
Position:4
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:System.Management.Automation.SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None.

您無法使用管線將輸入傳送至此 Cmdlet。