PowerCLI Reference

Set-VDPort

Synopsis

This cmdlet modifies the configuration of virtual distributed ports.

Syntax

Set-VDPort [-VDPort] <VDPort[]> [-Name <String>] [-Description <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-VDPort

Detailed Description

This cmdlet modifies the configuration of virtual distributed ports.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VDPortVDPort[]Specifies the virtual distributed port that you want to configure.truetrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
DescriptionStringSpecifies a description for the virtual distributed port that you want to configure.falsefalse
NameStringSpecifies a new name for the virtual distributed port that you want to configure.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

The modified VDPort objects

Notes

Examples

-------------- Example 1 --------------

$myVDPort = Get-VDPort -Key "Port0" -VDSwtich "MyVDSwitch"
Set-VDPort -VDPort $myVDPort -Name "MyUpdatedPortName" -Description "MyUpdatedVDPortDescription"

Updates the name and the description of a specified virtual distributed port inside a vSphere distributed switch named "MyVDSwitch".


Copyright © VMware, Inc. All rights reserved.