Get-SCLogicalSwitch

Gets a logical switch.

Syntax

Get-SCLogicalSwitch
   [[-Name] <String>]
   [-VMMServer <ServerConnection>]
   [<CommonParameters>]
Get-SCLogicalSwitch
   [[-Name] <String>]
   [-VMMServer <ServerConnection>]
   [-ID <Guid>]
   [<CommonParameters>]

Description

The Get-SCLogicalSwitch cmdlet gets a logical switch object.

Examples

Example 1: Get a logical switch by its name

PS C:\> $LogicalSwitch = Get-SCLogicalSwitch -Name "LogicalSwitch01"

This command gets the logical swtich named LogicalSwitch01 and stores it in the $LogicalSwitch variable.

Parameters

-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False