Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows

June 8, 2023 Windows 10Windows 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.

hidden Microsoft Virtual WiFi Miniport Adapter #4

Contents:
  • How to Permanently Remove Microsoft Wi-Fi Direct Virtual Adapter in Windows?
  • Microsoft WiFi Direct Virtual Adapter #2 Has a Driver Problem
  • Uninstalling Microsoft Virtual Wi-Fi Adapter on a Computer with Intel WLAN Card Installed

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.

powershell get hidden wi-fi direct virtual adapters

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

disable Microsoft Wi-Fi Direct Virtual Adapter

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.

disable projecting on this PC feature in windows 11

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

wireless display feature 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

HostedNetworkSettings registry setting

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

reset network with netsh 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.

uninstall Intel My WiFi Technology

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

6 comments
7
Facebook Twitter Google + Pinterest
previous post
Enable SMB Compression for Fast File Transfers on Windows 11/ Windows Server 2022
next post
How to Reset Windows Update Components to Fix Update Errors

Related Reading

How to Connect VPN Before Windows Logon

November 14, 2023

Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

November 7, 2023

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

6 comments

Alexander August 22, 2018 - 10:49 am

Hello,

I did everything that stands there to remove the Virtual Adapter, but they don’t go away.
The “not configured” even stands there and I have no clue what else I could forgot.
Do you have any idea, why it doesn’t work?
Greetings,
Alex

Reply
Justin March 8, 2019 - 6:37 pm

I had the same issue but the next time I disabled the one Virtual Adapter that kept coming back (the active culprit) and disabled it only at first then ran the registry command then restarted and checked with the netsh command. Afterwards I went back into Device Manager and then uninstalled the disabled virtual adapter then had device manager check for changes to see if it would come back and it showed back with a yellow triangle then soon disappeared for good on its own a few secs later.

Reply
Justin March 8, 2019 - 6:42 pm

Take that back, I forgot I didn’t have device manager show hidden after I restarted and sure enough two Virtual Adapters are still there.

Reply
Rey July 13, 2019 - 1:35 am

I’m on the last step, but the [net start wlansvc] didn’t really show up the same as in the pic.
When i tried [net start wlansvc] it shows:
“The requested service has already been started.”
“More help is available by typing NET HELPMSG 2182.”

And then i tried the below [netsh wlan show hostednetwork] it shows:
Hosted network settings
———————–
Mode : Allowed
Settings :

Hosted network status
———————
Status : Not available

Notice that there were no “The following helper DLL cannot be loaded:[idkthename].dll”

Reply
benjamin lee lovett January 3, 2020 - 6:17 pm

I have tried all above, still a problem….

Reply
Jack October 11, 2020 - 9:25 am

I read this in a another forum, someone stated the following stopped the WiFi direct virtual adapter #NN from re-creating a new one….

From your desktop
𝐜𝐥𝐢𝐜𝐤 𝐒𝐭𝐚𝐫𝐭>𝙎𝙚𝙩𝙩𝙞𝙣𝙜, 𝙎𝙮𝙨𝙩𝙚𝙢, 𝙋𝙧𝙤𝙟𝙚𝙘𝙩𝙞𝙣𝙜 𝙩𝙤 𝙩𝙝𝙞𝙨 𝙋𝘾.
Click on first drop down menu under the heading under…𝙒𝙞𝙣𝙙𝙤𝙬𝙨 𝙋𝘾𝙨 𝙖𝙣𝙙 𝙥𝙝𝙤𝙣𝙚 𝙘𝙖𝙣 𝙥𝙧𝙤𝙟𝙚𝙘𝙩 𝙩𝙤……. There should be 3 choices, tick… 𝘼𝙡𝙬𝙖𝙮𝙨 𝙊𝙛𝙛.

Not sure why that works, but it did for me, after doing the previously posted suggestions too, and apparently many others. Here is the full thread, hope this helps….

https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/disable-permanently-microsoft-wi-fi-direct-virtual/cbb1bc8b-9cce-488e-9f7d-95dbb89e45c8?page=1

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • How to Connect VPN Before Windows Logon

    November 14, 2023
  • Removing Azure Arc Setup Feature on Windows Server 2022

    November 9, 2023
  • Using WPAD (Web Proxy Auto-Discovery Protocol) on Windows

    November 7, 2023
  • Send Emails with Microsoft Graph API and PowerShell

    November 6, 2023
  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Allow Multiple RDP Sessions on Windows 10 and 11
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and Bypass UAC Prompt
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Fixing ‘The Network Path Was Not Found’ 0x80070035 Error Code on Windows
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top