## 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

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VDPort | VDPort[] | Specifies the virtual distributed port that you want to configure. | true | true (ByValue)
Confirm | SwitchParameter | If 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. | false | false
Description | String | Specifies a description for the virtual distributed port that you want to configure. | false | false
Name | String | Specifies a new name for the virtual distributed port that you want to configure. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

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.