Get-SCLogicalSwitch
获取逻辑开关。
语法
Get-SCLogicalSwitch
[[-Name] <String>]
[-VMMServer <ServerConnection>]
[<CommonParameters>]
Get-SCLogicalSwitch
[[-Name] <String>]
[-VMMServer <ServerConnection>]
[-ID <Guid>]
[<CommonParameters>]
说明
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 |