Take this question and answer it: "what is the absolutely technically comprehensive list of changes that happens to my system when I create an external switch in hyper-v with a network adapter (network card) assigned to it. Include what happens when either 'let the management os share this adapter' (include both)" And then take this other question and answer it (independently from the firs! Perform 2 separate searches): "what happens when I remove an external switch in Hyper-v". Finally, answer this question (separately from others, perform another search): " What happens when I check or uncheck the allow the management operating system to share this network adapter after I create a Hyper-V external virtual switch."
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
What Happens When Creating an External Switch in Hyper-V
When you create an external virtual switch in Hyper-V and assign a physical network adapter to it, several significant changes occur to your system:
Physical Network Adapter Changes
The physical network adapter becomes exclusively bound to the Hyper-V Extensible Virtual Switch protocol[4][9].
All other bindings (such as TCP/IP, Client for Microsoft Networks, File and Print Sharing, etc.) are removed from the physical adapter[5][9].
The physical adapter can no longer be used directly by the host operating system for network communications[9].
The adapter appears in Windows with all previous bindings removed, showing only the Hyper-V Extensible Virtual Switch binding[5].
Virtual Switch Creation
A new virtual switch entity is created in the Hyper-V infrastructure[1].
The virtual switch is configured to operate in external mode, connecting to the physical network through the assigned adapter[1][4].
The switch becomes capable of forwarding Ethernet frames between virtual machines, the management OS (if enabled), and the physical network[9].
The switch automatically allows untagged frames and all VLANs from 1-4096 to pass through[9].
When "Allow Management Operating System to Share This Network Adapter" is Checked
A new virtual network adapter is created for the management operating system (host OS)[1][5][9].
This virtual adapter appears in the host OS's network connections with a name following the pattern "vEthernet (switch name)"[9].
The management OS can continue to use the network connection through this virtual adapter[6].
The virtual adapter can be configured with IP settings, just like a physical adapter would be[9].
This allows the host to maintain network connectivity despite the physical adapter being bound exclusively to Hyper-V[6].
The management OS virtual adapter is connected to the same virtual switch as the VMs, allowing direct communication between the host and VMs on the same network[9].
When "Allow Management Operating System to Share This Network Adapter" is Unchecked
No virtual network adapter is created for the management operating system[1][5].
The host OS loses all network connectivity through that physical adapter[6].
The host will need another network adapter (physical or virtual on another switch) to maintain network connectivity[6].
Virtual machines can still communicate with each other and the external network through the virtual switch[4].
The management OS cannot directly communicate with VMs connected to this switch[9].
System Behavior Changes
Network traffic from VMs passes through the virtual switch and then through the physical adapter to reach the external network[9].
The virtual switch performs Ethernet frame switching functionality, directing traffic based on MAC addresses[9].
Quality of Service (QoS) settings can be applied to control bandwidth allocation[8].
The system may experience some performance impact, particularly if the physical adapter doesn't support hardware acceleration features like SR-IOV[2][9].
What Happens When Removing an External Switch in Hyper-V
When you remove an external virtual switch in Hyper-V, several significant changes occur:
Physical Network Adapter Changes
The physical network adapter is released from exclusive binding to the Hyper-V Extensible Virtual Switch[9].
The adapter returns to its previous state where it can be configured with standard network protocols and bindings[5].
The system will need to have the appropriate network bindings (TCP/IP, etc.) reapplied to the physical adapter for it to function normally for the host OS[5][9].
Virtual Network Adapter Changes
All virtual network adapters connected to the removed switch become disconnected[7].
Any virtual network adapters created for the management OS that were associated with this switch are automatically deleted[9].
Virtual machines that were using the switch will show their network adapters as "Not Connected"[8].
Management OS Network Connectivity
If the management OS was sharing the network adapter (had a virtual adapter on the switch), that connectivity is lost[9].
Any IP configuration associated with the management OS virtual adapter is lost[9].
If this was the only network connection for the host, the host will lose all network connectivity[9].
Any saved network configurations specific to that virtual adapter (such as static IP addresses, DNS settings, etc.) will need to be reconfigured if the switch is recreated[9].
Virtual Machine Impact
All virtual machines that were using the switch lose their external network connectivity[7][8].
Network communications between virtual machines that were using this switch are no longer possible[4].
Virtual machines will need to have their network adapters reconfigured to use a different virtual switch if network connectivity is required[7][8].
System Performance
If the external switch was causing performance issues (as sometimes reported with WiFi adapters), removing it may restore normal network performance to the host system[2].
Any QoS or bandwidth settings applied to the virtual switch are removed[8].
What Happens When Checking/Unchecking "Allow Management OS to Share" After Creating an External Switch
When Checking "Allow Management Operating System to Share This Network Adapter"
If you check this option after the external virtual switch has already been created:
A new virtual network adapter is created for the management operating system (host OS)[1][6][9].
This virtual adapter appears in the host's network connections with a name following the pattern "vEthernet (switch name)"[5][9].
The number of network connections visible in the host will increase by one, as the new virtual adapter is added[5].
The management OS can now communicate through this virtual adapter, gaining access to the network connected to the physical adapter[6].
The host can now directly communicate with virtual machines connected to the same virtual switch[9].
You'll need to configure IP settings on this new virtual adapter for the host to use it for network connectivity[6][9].
A warning message will appear indicating that the change may temporarily disrupt network connectivity while the new configuration is applied[1].
When Unchecking "Allow Management Operating System to Share This Network Adapter"
If you uncheck this option after the external virtual switch has been created with sharing enabled:
The virtual network adapter that was created for the management OS is removed[1][6][9].
The host OS loses all network connectivity through that physical adapter[6][9].
Any IP configuration and network settings associated with that virtual adapter are lost[9].
The host will need another network adapter (physical or virtual on another switch) to maintain network connectivity[6].
Virtual machines can still communicate with each other and the external network through the virtual switch[4][9].
The management OS can no longer directly communicate with VMs connected to this switch[9].
A warning message will appear indicating that the change may disrupt network connectivity[1].
If this was the only network connection for the host, you may lose remote management capability to the host until another network connection is established[6][9].
In specialized configurations like clusters or storage networks, you should carefully consider whether the management OS needs to share specific network adapters based on your network design requirements[6].
User
When this external switch is removed via hyper-v manager, are the sum total of changes reversed and are all remnants removed? It this process wholly clean? If not, what remains and how to clean up
Assistant
Are All Changes Reversed and Remnants Removed When an External Switch Is Removed in Hyper-V?
Removing an external switch in Hyper-V does not always fully reverse all changes or remove all remnants. While the core configuration is generally rolled back, there are common scenarios where remnants or configuration issues persist.
What Is Reversed Automatically
Physical Adapter Bindings: The physical network adapter previously dedicated to the external switch is unbound from the Hyper-V Extensible Virtual Switch protocol. Standard network protocol bindings (TCP/IP, etc.) are typically restored, allowing the adapter to function as a normal network interface for the host OS again[4][5].
Virtual Network Adapters: Any virtual network adapters created for the management OS (if "allow management OS to share" was enabled) are deleted[5].
VM Connectivity: Virtual machines lose connectivity through the removed switch, and their adapters are set to "Not Connected"[5][8].
What May Remain or Go Wrong
Stale Virtual Network Adapters: Sometimes, virtual adapters (e.g., "vEthernet" adapters) remain in the host's network connections or Device Manager, even after the switch is deleted. These may appear greyed out or non-functional and cannot always be deleted via standard GUI methods[6][8][10].
Registry Remnants: Registry entries related to the deleted switch or virtual adapters may persist, potentially causing confusion or issues if you recreate switches with the same name or configuration[8][10].
Network Settings Not Restored: The original IP configuration (static IP, DNS, etc.) of the physical adapter may not be automatically restored, especially if it was moved to a virtual adapter during switch creation. Manual reconfiguration may be required to restore connectivity[2][7].
Device Manager Artifacts: Virtual switch extensions or adapters may remain listed in Device Manager and sometimes resist removal[10].
Network Profile Issues: Old network profiles or settings may linger, causing network identification or connectivity issues[8].
How to Clean Up Remnants
If you encounter remnants after removing a Hyper-V external switch, try the following steps:
1. Device Manager Cleanup
Open Device Manager, expand "Network Adapters," and uninstall any stale "vEthernet" or Hyper-V virtual adapters[8][10].
If the uninstall option is greyed out, proceed to the next steps.
2. Network Connections Cleanup
User
Look more into any changes made for purposes of reversing them, especially registry and network settings
Assistant
Reversing Hyper-V Virtual Switch Changes: Registry and Network Settings
When removing a Hyper-V external virtual switch, several changes need to be properly reversed to ensure a clean system state. While the basic removal process through Hyper-V Manager handles some aspects, there are often remnants and configuration issues that require manual cleanup, particularly in the registry and network settings.
Registry Changes That Need Reversal
The most significant registry changes related to Hyper-V virtual switches are found in these locations:
Contains configuration information for network adapters
When switches are removed, these entries may not be properly cleaned up
Network Settings That Need Reversal
When an external switch is removed, these network settings often need manual restoration:
Physical Adapter Bindings
When creating an external switch, all protocol bindings (TCP/IP, Client for Microsoft Networks, etc.) are removed from the physical adapter[9]
These bindings are not always automatically restored when the switch is removed
You may need to manually re-enable TCP/IP and other protocols on the physical adapter
IP Configuration
IP settings from the physical adapter are transferred to the virtual adapter when creating an external switch with management OS sharing
When the switch is removed, these settings are not automatically transferred back[7][10]
Static IP addresses, DNS settings, and other network configurations may need manual reconfiguration
Network Profiles
Network profiles associated with the virtual adapters may persist
User
Are the virtual switch drivers used when Another external switch is created - now bound to ANOTHER network adapter
Assistant
When you create another external virtual switch in Hyper-V and bind it to a different physical network adapter, the Hyper-V Extensible Virtual Switch driver is again used and bound to that new adapter. Here’s how it works:
Each external virtual switch is a separate logical entity. When you create an external switch and assign it to a physical network adapter, Hyper-V binds the "Hyper-V Extensible Virtual Switch" protocol (driver) to that specific adapter. All other network protocol bindings (TCP/IP, etc.) are removed from that adapter, and only the Hyper-V switch protocol remains[3][4].
If you create a second external switch and bind it to another physical adapter, the same process occurs: the Hyper-V Extensible Virtual Switch protocol is bound to the second adapter, and all other protocol bindings are removed from it as well[3][4].
The virtual switch driver is not unique to a single adapter; it is a system component that can be bound to multiple adapters, each representing a separate external switch. Each physical adapter used for an external switch will have the Hyper-V switch protocol bound to it, and each will be managed independently by Hyper-V[3][4].
Switch ports and extensions: For each external switch, Hyper-V creates and manages its own set of switch ports and notifies any installed switch extensions about port creation, updates, and deletion. This is handled per switch instance, so each external switch (even on different adapters) is managed separately at the driver and extension level[2].
Summary Table
Action
Effect on Physical Adapter(s)
Driver Usage
Create external switch on Adapter A
Hyper-V switch protocol bound to A
Yes, driver used on A
Create external switch on Adapter B
Hyper-V switch protocol bound to B
Yes, driver used on B
Remove external switch from Adapter A
Protocol unbound from A
Driver remains for B
Remove all external switches
Protocol unbound from all adapters
Driver remains installed
Key Points:
The Hyper-V Extensible Virtual Switch driver is a system component and can be bound to multiple adapters simultaneously, each time you create an external switch on a different adapter[3][4].
Each external switch is managed independently, but all use the same underlying driver and switch framework[2][3].
Removing an external switch from one adapter does not affect the driver’s binding to other adapters with external switches[3][4].
User
So which cleanup steps or substeps are redubdant if another external switch with another network adapter bound to it is to be created?
Assistant
When you're planning to create another external switch with a different network adapter bound to it, some of the cleanup steps for removing an existing external switch become redundant. Here's an analysis of which cleanup steps you can skip:
Redundant Cleanup Steps
Registry Cleanup of Driver Components
The Hyper-V Extensible Virtual Switch driver remains installed and active in the system when you create a new external switch with another adapter[3][4].
You don't need to reinstall or reconfigure the core virtual switch driver components, as they're shared across all virtual switches[4].
Device Manager Cleanup of Virtual Switch Extensions
The virtual switch extensions that support the Hyper-V networking stack remain installed and are reused for the new external switch[4].
Removing these extensions is unnecessary and potentially harmful if you're creating another external switch.
Network Reset Command (netcfg -d)
This aggressive command resets all network adapters and settings, which is excessive if you're just switching adapters[4][10].
This step should be skipped as it would remove configurations needed for your new external switch.
Still Necessary Cleanup Steps
Specific Virtual Switch Removal
You still need to properly remove the specific virtual switch you no longer want using either Hyper-V Manager or PowerShell[1][5].
Remove-VMSwitch -Name "OldSwitchName"
Management OS Virtual Adapter Cleanup
The virtual network adapter created for the management OS (if "Allow management OS to share" was enabled) should still be removed[5][9].
This is specific to the removed switch and won't affect the new one you're creating.
Registry Cleanup of Specific Switch Entries
You should still remove registry entries specific to the deleted switch from:
Only remove the entry for the specific switch you're deleting, not all entries[1][10].
IP Configuration Restoration
You still need to reconfigure the IP settings for the physical adapter that was previously bound to the removed external switch[7][9].
User
When removing the external switch, it warns me that "static changes" will be reset. What is the exhaustive list of changes that it talks about?
Assistant
When Hyper-V warns that "static changes" will be reset upon removing an external virtual switch, it refers to the static network configuration settings that were previously applied to the physical network adapter before the switch was created. Here is the exhaustive list of changes that this warning covers:
Exhaustive List of "Static Changes" That Will Be Reset
1. Static IP Address
If your physical network adapter had a static IPv4 or IPv6 address before you created the external switch, that static IP was moved to the virtual network adapter (vEthernet) created for the management OS[1][4][6].
When you remove the external switch, the static IP configuration on the vEthernet adapter is deleted, and the physical adapter may revert to DHCP or have no IP configuration at all[1][6].
2. Subnet Mask
Any custom subnet mask set on the physical adapter is also moved to the vEthernet adapter and will be lost from the physical adapter[1][6].
3. Default Gateway
The default gateway setting is transferred to the vEthernet adapter and will be lost from the physical adapter upon switch removal[1][6].
4. DNS Server Settings
Any static DNS server addresses configured on the physical adapter are moved to the vEthernet adapter and will be lost from the physical adapter when the switch is removed[1][6].
5. WINS Server Settings
If you had static WINS server addresses set, these are also moved and will be lost from the physical adapter[1].
6. Advanced TCP/IP Settings
Any advanced settings (such as additional IP addresses, custom routes, or specific TCP/IP options) applied to the physical adapter are moved to the vEthernet adapter and will not be automatically restored to the physical adapter[1][6].
7. Network Profile
The network profile (Private/Public/Domain) associated with the vEthernet adapter will be removed, and the physical adapter may revert to its previous profile or require reconfiguration[6].
What Actually Happens
When you create an external switch and allow the management OS to share the adapter, Hyper-V moves all these static settings from the physical adapter to the new vEthernet adapter.
When you remove the external switch, the vEthernet adapter is deleted, and all static settings are lost unless you manually reapply them to the physical adapter[1][6].
The physical adapter typically reverts to DHCP or an unconfigured state, which can result in loss of connectivity until you manually restore the static settings[1][6].
User
So all these are set to defaults or something else?
Assistant
When you remove an external virtual switch in Hyper-V, the static network settings that were previously moved from your physical adapter to the vEthernet (virtual) adapter are not automatically restored to their original state. Here’s what happens in detail:
What Happens to Static Settings After Switch Removal
Static IP Address, Subnet Mask, Gateway, DNS, WINS, and Advanced TCP/IP Settings:
These are not restored to the physical adapter. Instead, the physical adapter typically reverts to its default state, which is usually set to obtain an IP address automatically via DHCP (if DHCP is available on your network)[6]. If no DHCP server is present, the adapter may have no IP configuration or may assign itself an APIPA (Automatic Private IP Addressing) address (in the 169.254.x.x range).
Network Profile:
The network profile (Private/Public/Domain) may revert to the default for new connections, or you may be prompted to select a profile the next time the adapter connects to a network.
Any Custom Settings:
Any custom routes or advanced settings are lost and not restored to the physical adapter.
What You Need to Do
Manual Reconfiguration Required:
If you had static settings (IP, DNS, etc.) before creating the external switch, you must manually re-enter these settings on the physical adapter after removing the switch[6].
No Automatic Restoration:
Hyper-V does not keep a backup of your previous static settings, so there is no automatic restoration to your prior configuration[6].
Summary Table
Setting
After Switch Removal
Static IP Address
Set to DHCP (default) or unconfigured
Subnet Mask
Set to DHCP (default) or unconfigured
Default Gateway
Set to DHCP (default) or unconfigured
DNS Servers
Set to DHCP (default) or unconfigured
WINS Servers
Set to DHCP (default) or unconfigured
Advanced TCP/IP
Lost
Network Profile
May revert to default
In summary: All static network settings are lost from the system and the physical adapter is set to defaults (typically DHCP). You must manually restore any static configuration you require after removing the external switch[6].
Go to Control Panel > Network and Sharing Center > Change adapter settings.
Right-click and try to delete or disable any leftover virtual adapters[8].
3. Command Line Tools
Use PowerShell to list and remove lingering virtual network adapters:
Use netcfg -d in an elevated command prompt to reset all network adapters and settings (this will remove all network configuration, so use with caution)[10].
After cleanup, reboot the system to ensure all changes take effect and remnants are cleared[8][10].
Summary Table
Change/Remnant
Automatically Reversed?
Manual Cleanup Needed?
How to Clean Up
Physical adapter bindings
Yes
Sometimes
Reconfigure IP if needed
Management OS virtual adapter
Yes
Rarely
Device Manager if persists
VM virtual adapters
Yes
No
N/A
Registry entries
No
Sometimes
Regedit (advanced)
Device Manager artifacts
No
Sometimes
Device Manager, netcfg -d
Network profiles/settings
No
Sometimes
Command line, registry
Conclusion
Removing an external switch in Hyper-V is not always a wholly clean process. While most core changes are reversed, remnants such as stale adapters, registry entries, and network settings can persist. Manual cleanup using Device Manager, PowerShell, command-line tools, and the registry may be required to fully restore the system to its pre-switch state[6][8][10].
These can cause network identification issues or connectivity problems
Cleanup Methods
To properly reverse all changes and clean up remnants:
1. PowerShell Cleanup
# Remove any lingering virtual network adapters in the management OS
Get-VMNetworkAdapter -ManagementOS | Remove-VMNetworkAdapter
# Remove any lingering switches
Get-VMSwitch | Remove-VMSwitch -Force
2. Network Reset
For a more thorough cleanup, use the network reset command:
netcfg -d
This command resets all network adapters and settings to their default state, removing virtual adapters and restoring physical adapter bindings[4][6][10]. Note that this will remove all network configurations, so you'll need to reconfigure your network settings afterward.
3. Registry Cleanup
If problems persist, you may need to manually clean the registry:
Export the registry keys as backup before making changes
set devmgr_show_nonpresent_devices=1
start devmgmt.msc
View > Show hidden devices
Expand Network Adapters
Uninstall any greyed-out or stale virtual adapters[4][8]
5. Network Adapter Configuration
After cleanup, ensure the physical adapter has the correct bindings:
Open Network Connections
Right-click the physical adapter > Properties
Ensure TCP/IP and other necessary protocols are checked
Configure the appropriate IP settings
Common Issues During Reversal
Permission Denied Errors: When trying to delete registry entries, you may encounter "Access Denied" errors[4]. This often requires taking ownership of the registry keys first.
Persistent Virtual Adapters: Some virtual adapters may remain in Device Manager even after switch removal and resist standard uninstallation[4][10].
Network Connectivity Loss: After removing an external switch, the host may lose network connectivity until the physical adapter is properly reconfigured[6][10].
IP Configuration Issues: Static IP configurations may not transfer back to the physical adapter, requiring manual reconfiguration[7].
Docker/Container Integration: If you're using Docker or Windows Containers, additional cleanup may be needed as these technologies integrate with Hyper-V networking[1].
By addressing these registry and network setting changes, you can more effectively reverse the modifications made by Hyper-V external switches and restore your system to a clean state.
In summary: Yes, the virtual switch drivers are used each time you create an external switch, and they are bound to each physical network adapter that is assigned to an external switch. This process is independent for each adapter and switch instance[3][4].
Summary
The redundant steps are primarily those that would remove or reset global Hyper-V networking components that are shared across all virtual switches. The Hyper-V Extensible Virtual Switch driver and its extensions are system-wide components that can be bound to multiple physical adapters simultaneously, each representing a separate external switch[3][4].
When creating a new external switch with another adapter, focus your cleanup on the specific components of the old switch (the switch itself, its registry entry, and its management OS virtual adapter) while preserving the shared infrastructure that will be reused by your new switch.
What You Should Do
Before removing the external switch, note down all static network settings (IP, subnet, gateway, DNS, WINS, etc.) from the vEthernet adapter.
After removal, manually reapply these settings to the physical adapter to restore your previous network configuration[1][6].
In summary:
The "static changes" warning covers all static network configuration settings (IP address, subnet mask, gateway, DNS, WINS, advanced TCP/IP settings, and network profile) that were moved from the physical adapter to the vEthernet adapter. These will be lost from the system when the external switch is removed, and you must manually restore them to the physical adapter to regain your previous network configuration[1][4][6].