Computer >> Computer tutorials >  >> System >> Windows 11

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

The Microsoft Wi-Fi Direct Virtual Adapter is a Windows virtual device that is used to directly connect two devices using Wi-Fi Direct, bypassing Wi-Fi access points/routers. This specification is described in Wi-Fi Peer-to-Peer Technical Specification v1.1. One Wi-Fi device is used to connect to Wi-Fi networks (completely similar to a physical adapter), and the second – “Microsoft Wi-Fi Direct Virtual Adapter” – to directly connect to other Wi-Fi devices (monitors, printers, scanners).

This virtual (software) network adapter is always displayed in Device Manager if a physical Wi-Fi adapter is installed on the computer. It is called:

  • In Windows 11 and Windows 10 — Microsoft Wi-Fi Direct Virtual Adapter;
  • In Windows 7 — Microsoft Virtual WiFi Miniport Adapter.

To see this adapter, open Device Manager (devmgmt.msc), and enable the option View -> Show Hidden Devices. Now expand the Network Adapters section and find the “Microsoft Wi-Fi Direct Virtual Adapter” in the list.

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

How to Permanently Remove Microsoft Wi-Fi Direct Virtual Adapter in Windows?

In some cases, Device Manager displays multiple virtual adapters with an index (Microsoft Wi-Fi Direct Virtual Adapter #2, Microsoft WiFi Direct Virtual Adapter #3, Microsoft Virtual WiFi Miniport Adapter #4, etc.). And only one of the virtual adapters can be active.

You can get a list of Wi-Fi Direct virtual adapters in Windows using PowerShell:

Get-NetAdapter -InterfaceDescription "Microsoft Wi-Fi Direct Virtual*" -IncludeHidden

As you can see, they are all Disconnected.

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

You can remove/disable these adapters with the Device Manager by selecting Disable Device and/or Delete from the context menu.

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

Virtual WAN Miniport PPTP/PPPOE/L2TP/IKEv2 (etc.) adapters are used to implement VPN connections on Windows. If these WAN adapters are not working properly or removed, you may encounter the following error when trying to establish a VPN connection: A connection to the remote computer could not be established. You might need to change the network settings for this connection.  

Or disable Wi-Fi Direct network adapters using PowerShell:

Get-NetAdapter -InterfaceDescription "Microsoft Wi-Fi Direct Virtual*" -IncludeHidden | Disable-NetAdapter -Confirm:$false

However, the problem is that after restarting the computer, this device appears again in the list of network adapters.

In Windows 10 and 11, the Microsoft Wi-Fi Direct Virtual Adapter is used for Projecting to this PC feature. This feature is used to mirror or share the screen of other devices to your computer/laptop (or vice versa) via a direct Wi-Fi connection (using Miracast).

To disable this virtual adapter correctly, go to the Settings -> System -> Projecting to this PC panel and change “Some Windows and Android devices can project to this PC when you say it’s OK” to Always off.

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

This option is available if the Wireless Display feature is installed in Windows:

Get-WindowsCapability -Name App.WirelessDisplay.Connect* -Online | Select-Object -Property DisplayName, State

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

After that, Windows will stop creating a new WiFi direct virtual adapter #NN.

Note that “Microsoft Wi-Fi Direct Virtual Adapter” and “Microsoft Hosted Network Virtual Adapter” are different virtual adapter types.

The Microsoft Hosted Network Virtual Adapter appears in the Device Manager when you create a Wi-Fi hotspot from your Windows device (which other devices can use to access the Internet).

If you are unable to create a hotspot in Windows, try resetting the Virtual Hosted Adapter settings in the system registry. Remove the parameter HostedNetworkSettings (DWORD) under the registry key HKLM\System\CurrentControlSet\Services\WlanSvc\Parameters\HostedNetworkSettings:

You can delete this parameter with the command:

reg delete hklm\system\currentcontrolset\services\wlansvc\parameters\hostednetworksettings /v hostednetworksettings

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

Microsoft WiFi Direct Virtual Adapter #2 Has a Driver Problem

If the Wi-Fi Direct features are not working properly on your computer, or you see a yellow triangle with an exclamation mark on the “Microsoft Direct Wi-Fi Virtual Adapter #2” icon in Device Manager, you can try resetting it.

This device cannot start. (Code 10) {Operation Failed} The requested operation was unsuccessful.

or:

Microsoft Wi-Fi Direct Virtual Adapter has a problem.

To do this, you need to reset the TCP/IP stack settings in Windows. Open an elevated command prompt and run the commands:

ipconfig /flushdns
nbtstat –R
nbtstat –RR
netsh int ip reset
netsh winsock reset

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

Go to Device Manager and remove the Microsoft Direct Wi-Fi Virtual Adapter by selecting the Uninstall menu item.

Restart your computer and check that the Direct Wi-Fi virtual device is now displayed correctly and that Windows has found a suitable driver for it.

Uninstalling Microsoft Virtual Wi-Fi Adapter on a Computer with Intel WLAN Card Installed

There is another problem with Intel WLAN adapters. If the Intel My WiFi Technology module is installed on a computer (as a rule, it is installed together with Intel PROSet/Wireless driver pack), there may be two Microsoft Virtual WiFi Miniport network adapters in the device list that cannot be removed.

In this case, you need to find “Intel PROSet/Wireless” in the list of the installed software in the Control Panel, change it, and uninstall the Intel My WiFi Technology feature.

How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows?

After that, one of the virtual network adapters will disappear. The second one can be disabled using the method described above.