PowerShell Logo Small

Disconnect-VMNetworkAdapter



This is the built-in help made by Microsoft for the command 'Disconnect-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

Disconnects a virtual network adapter from a virtual switch or Ethernet resource pool.

SYNTAX


Disconnect-VMNetworkAdapter [-VMName] <String[]> [[-Name] <String[]>] [-ComputerName <String[]>] [-Passthru] [<CommonParameters>]
Disconnect-VMNetworkAdapter [-VMNetworkAdapter] <VMNetworkAdapter[]> [-Passthru] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Disconnect-VMNetworkAdapter cmdlet disconnects a virtual network adapter from a virtual switch or Ethernet resource pool.



<

RELATED LINKS


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

REMARKS

<

Examples


Example 1

PS C:\>Disconnect-VMNetworkAdapter -VMNetworkAdapter Test1



Disconnects virtual network adapter Test1.




Example 2

PS C:\>Get-VMNetworkAdapter -VMName * | Where-Object {$_.SwitchName -eq 'InternetAccess'} | Disconnect-VMNetworkAdapter



Disconnects all virtual network adapters whose SwitchName is InternetAccess in all virtual machines on the local Hyper-V server.