Get-SCLogicalSwitch
取得邏輯交換器。
Syntax
Get-SCLogicalSwitch
[[-Name] <String>]
[-VMMServer <ServerConnection>]
[<CommonParameters>]
Get-SCLogicalSwitch
[[-Name] <String>]
[-VMMServer <ServerConnection>]
[-ID <Guid>]
[<CommonParameters>]
Description
Get-SCLogicalSwitch Cmdlet 會取得邏輯交換器物件。
範例
範例 1:依其名稱取得邏輯交換器
PS C:\> $LogicalSwitch = Get-SCLogicalSwitch -Name "LogicalSwitch01"
此命令會取得名為 LogicalSwitch01 的邏輯 swtich,並將它儲存在 $LogicalSwitch 變數中。
參數
-ID
將數值識別碼指定為特定物件的全域唯一識別碼或 GUID。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 物件的名稱。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定 VMM 伺服器物件。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |