PowerShell Logo Small

Rename-VMNetworkAdapter



This is the built-in help made by Microsoft for the command 'Rename-VMNetworkAdapter', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Renames a virtual network adapter on a virtual machine or on the management operating system.

SYNTAX


Rename-VMNetworkAdapter [-VMName] <String[]> [[-Name] <String>] [-NewName] <String> [-ComputerName <String[]>] [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm]
[-WhatIf] [<CommonParameters>]
Rename-VMNetworkAdapter [[-Name] <String>] [-NewName] <String> [-ComputerName <String[]>] [-Passthru] [-VMNetworkAdapterName <String>] -ManagementOS [-Confirm] [-WhatIf]
[<CommonParameters>]
Rename-VMNetworkAdapter [-VM] <VirtualMachine[]> [[-Name] <String>] [-NewName] <String> [-Passthru] [-VMNetworkAdapterName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Rename-VMNetworkAdapter [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-NewName] <String> [-Passthru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Rename-VMNetworkAdapter cmdlet renames a virtual network adapter on a virtual machine or on the management operating system.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306922

REMARKS

<

Examples


Example 1

PS C:\>Rename-VMNetworkAdapter –VMName Redmond –NewName CoreNet



This example renames all the virtual network adapters of virtual machine Redmond to CoreNet.




Example 1

PS C:\>Rename-VMNetworkAdapter -VMName Kirkland –Name Private -NewName CoreNet



This example renames the virtual network adapter Private to CoreNet in virtual machine Kirkland.