共用方式為


New-SCVMMConnector

建立新的 Service Manager Virtual Machine Manager 連接器。

語法

New-SCVMMConnector
   [[-Description] <String>]
   [-Enable <Boolean>]
   [-DisplayName] <String>
   [-PassThru]
   [[-RunAsAccount] <ManagementPackSecureReference>]
   [-ServerName] <String>
   [[-ServerPort] <Int32>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-SCVMMConnector Cmdlet 會建立 Service Manager Virtual Machine Manager 連接器。

範例

範例 1:建立 Virtual Machine Manager 連接器

PS C:\>New-SCVMMConnector -DisplayName "contoso-vmm" -ServerName "ContosoServer.net"

此命令會建立 Virtual Machine Manager 連接器。

參數

-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 會傳回它所建立的 Virtual Machine Manager 連接器。 您可以將這個物件傳遞至其他 Cmdlet。

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

-RunAsAccount

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

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

-SCSession

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

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

-ServerName

指定 Virtual Machine Manager 伺服器名稱。

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

-ServerPort

{{Fill ServerPort Description}}

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

-WhatIf

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

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