CmdID / PowerShell / Cmdlets / Disconnect
Disconnect-VMNetworkAdapter
Disconnects a virtual network adapter from a virtual switch or Ethernet resource pool. Windows Server PowerShell reference
From the Windows Server PowerShell reference 9 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts on which a virtual network adapter is to be disconnected.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-Name, -VMNetworkAdapterNameSpecifies the name of the virtual network adapter to be disconnected.-PassthruSpecifies that a Microsoft.HyperV.PowerShell.VMNetworkAdapter object is to be passed through to the pipeline representing the virtual network adapter to be disconnected.-VMNameSpecifies the name of the virtual machine in which the virtual network adapter is to be disconnected.-VMNetworkAdapterSpecifies the virtual network adapter to be disconnected.-WhatIf, -wiShows what would happen if the cmdlet runs.