Delen via


Get-SCVirtualNetworkAdapterPortProfileSet

Gets a virtual network adapter port profile set.

Syntax

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

Description

The Get-SCVirtualNetworkAdapterPortProfileSet cmdlet gets one or more virtual network adapter port profile sets. You can get a virtual network adapter port profile set by its name or ID, or all virtual network adapter port profile sets for a logical switch.

Examples

Example 1: Get a virtual network adapter port profile set by its name

PS C:\> Get-SCVirtualNetworkAdapterPortProfileSet -Name "VirtualNetworkAdapterPortProfSet01"

This command gets the virtual network adapter port profile set object named VirtualNetworkAdapterPortProfileSet01 and displays information about the object to the user.

Example 2: Get all virtual network adapter port profile sets for a logical switch

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

The first command gets the logical switch object named LogicalSwitch01 and stores the object in the $LogSwtich variable.

The second command gets all virtual network adapter port profile sets that use logical switch LogicalSwitch01.

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:True
Accept pipeline input:False
Accept wildcard characters:False

-LogicalSwitch

Specifies a logical switch object.

Type:LogicalSwitch
Position:Named
Default value:None
Required:True
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