Syntax
Set-VDPort [-VDPort] <VDPort[]> [-Description <String>] [-Name <String>] [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed 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 objectsNotes
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".