Get-SCLogicalSwitch

Gets a logical switch.

Syntax

Get-SCLogicalSwitch [[-Name] <String>] [-ID <Guid>] [-VMMServer <ServerConnection>] [<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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

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

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

Specifies a VMM server object.

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