The Microsoft Virtual WiFi Miniport Adapter shows up in Device Manager on older Windows machines, or youāve stumbled on it while troubleshooting a driver error, and itās not immediately obvious what it does or whether you still need it. The short answer: itās a legacy feature from Windows 7 thatās been quietly replaced on modern Windows 10 and Windows 11 by Mobile Hotspot and Wi-Fi Direct.
What Is the Microsoft Virtual WiFi Miniport Adapter?
The Microsoft Virtual WiFi Miniport Adapter was Microsoftās implementation of a technology called Wireless Hosted Network, introduced in Windows 7 and Windows Server 2008 R2. It worked by virtualizing your single physical Wi-Fi card into two logical adapters:
- One adapter connected to your normal Wi-Fi network as usual
- The second (the virtual miniport) acted as a software access point, letting other devices connect to your PC as if it were a router
This let you share a wired or wireless internet connection over Wi-Fi without any extra hardware. At the time, it was genuinely useful. The catch was that it required command-line setup and wasnāt officially documented. Microsoft treated it as a semi-hidden feature.
Does It Still Exist in Windows 10 and Windows 11?
Not really. On modern Windows 10 and Windows 11, the original Microsoft Virtual WiFi Miniport Adapter is deprecated and usually absent. If you open Device Manager today, youāre more likely to see Microsoft Wi-Fi Direct Virtual Adapter entries instead. Thatās the newer underlying technology Windows uses for Mobile Hotspot, Miracast wireless display, and peer-to-peer connections.
The netsh wlan set hostednetwork command still exists on some builds, but running netsh wlan show drivers on a modern machine will typically return Hosted network supported: No, meaning the old miniport path is gone from that driver stack.
For almost every use case the old miniport covered, Windows now has a proper built-in replacement.
What Replaced It: Mobile Hotspot and Wi-Fi Direct
Option 1: Use Mobile Hotspot (Recommended for sharing your connection)
Mobile Hotspot is the direct, officially supported replacement for everything the Virtual WiFi Miniport Adapterās hosted network feature did. No command line needed.
- Open Settings and go to Network & Internet > Mobile hotspot.
- Under Share my Internet connection from, choose your active connection. Select Wi-Fi, Ethernet, or a mobile connection if available.
- Click Edit to set a custom Network name (SSID) and Network password.
- Toggle Mobile hotspot to On.
Windows creates and manages a Wi-Fi Direct virtual adapter behind the scenes, so you never have to touch it directly. Other devices will see your PCās hotspot in their Wi-Fi list and can connect using the password you set.
Option 2: View or Disable the Microsoft Wi-Fi Direct Virtual Adapter
If youāre troubleshooting driver conflicts, a Code 31 error, or just want to see what virtual adapters are running on your system, Device Manager is where to look.
- Right-click the Start button and select Device Manager.
- Expand Network adapters.
- Click View > Show hidden devices, as some virtual adapters only appear when this is enabled.
- Look for Microsoft Wi-Fi Direct Virtual Adapter (there may be more than one listed).
- Right-click the adapter and choose Disable device to turn it off, or Uninstall device to remove it. Windows will recreate it automatically the next time a feature like Mobile Hotspot needs it.
Legacy Only: Setting Up a Hosted Network via Command Line (Windows 7 / Windows 8)
If youāre on an older machine still running Windows 7 or Windows 8, the original command-line method may still work, provided your driver supports it. These commands are deprecated and wonāt work on most modern Windows 10/11 driver stacks.
First, check whether your hardware supports the hosted network feature:
- Open Command Prompt as Administrator (search for cmd, right-click, select Run as administrator).
- Run the following command:
netsh wlan show drivers - Look for the line Hosted network supported. If it says Yes, continue. If it says No, this method wonāt work on your system.
If your hardware supports it, create and start the hosted network:
- Run this command, replacing YourSSID and YourPassword with your chosen network name and password:
netsh wlan set hostednetwork mode=allow ssid=YourSSID key=YourPassword - Start the hosted network:
netsh wlan start hostednetwork - To check connection status and see how many clients are connected:
netsh wlan show hostednetwork - When youāre done, stop and disable it:
netsh wlan stop hostednetworknetsh wlan set hostednetwork mode=disallow
Youāll also need to enable Internet Connection Sharing on your main adapter so connected devices can actually reach the internet. Go to Network & Sharing Center > Change adapter settings, right-click your main internet-connected adapter, select Properties > Sharing, and check Allow other network users to connect through this computerās Internet connection. In the dropdown, select the virtual adapter (usually listed as Wireless Network Connection 2 or similar).
Fixing Common Virtual Adapter Errors
Fix #1: Reinstall the wireless driver to resolve Code 31 or driver errors
If Device Manager shows a yellow warning icon on the Microsoft Virtual WiFi Miniport Adapter or Microsoft Wi-Fi Direct Virtual Adapter, often with the message āThis device is not working properly because Windows cannot load the drivers required for this device (Code 31)ā, a driver reinstall usually clears it.
- Open Device Manager (right-click Start > Device Manager).
- Expand Network adapters.
- Right-click your main Wi-Fi adapter (not the virtual one) and select Uninstall device. Check the box to Delete the driver software for this device if it appears.
- After uninstalling, click Action > Scan for hardware changes. Windows will detect the adapter and reinstall the driver automatically.
If the automatic driver doesnāt fix the Code 31 error, download the latest Wi-Fi driver directly from your laptop manufacturerās support page (Dell, HP, Lenovo, ASUS, etc.) or from the chipset vendor (Intel, Qualcomm, Realtek, Broadcom) and install it manually.
Fix #2: Restore a missing Wi-Fi adapter after uninstalling the virtual adapter
If you uninstalled the virtual adapter and now your Wi-Fi has stopped working entirely, Windows should be able to detect and reinstall it.
- Open Device Manager.
- Click Action > Scan for hardware changes. Windows will attempt to rediscover and reinstall the Wi-Fi adapter and any associated virtual adapters.
- If the adapter still doesnāt appear, download and reinstall the Wi-Fi driver from your OEMās support site.
- If Wi-Fi still doesnāt work after reinstalling the driver, use System Restore to roll back to a point when Wi-Fi was working: search for Create a restore point in the Start menu, click System Restore, and follow the prompts.
Fix #3: Run the Network troubleshooter
If youāre not sure whether the virtual adapter is causing a broader Wi-Fi problem, Windowsā built-in troubleshooter can catch obvious driver and configuration issues automatically.
- Open Settings > System > Troubleshoot > Other troubleshooters.
- Click Run next to Internet Connections.
- Follow the on-screen prompts. If the troubleshooter finds a driver problem, let it apply the fix automatically.
Quick Reference: Old vs. New
| Feature | Windows 7 / 8 (Legacy) | Windows 10 / 11 (Current) |
|---|---|---|
| Virtual adapter name | Microsoft Virtual WiFi Miniport Adapter | Microsoft Wi-Fi Direct Virtual Adapter |
| Share internet as Wi-Fi hotspot | netsh wlan set hostednetwork + ICS | Settings ā Mobile Hotspot |
| Setup method | Command line (deprecated) | Settings UI (supported) |
| Peer-to-peer / Miracast | Ad-hoc network via miniport | Wi-Fi Direct virtual adapter |
| Manage in Device Manager | Yes (visible by default) | Yes (may need Show hidden devices) |
Conclusion
For anyone on Windows 10 or Windows 11, Mobile Hotspot in Settings is the right tool. Itās stable, officially supported, and takes about 30 seconds to set up. If youāre seeing driver errors related to the Microsoft Wi-Fi Direct Virtual Adapter, reinstalling your Wi-Fi driver from your OEMās site (Fix #1) resolves it in most cases. The legacy Virtual WiFi Miniport Adapter is worth knowing about for historical context or if youāre supporting an older Windows 7/8 machine, but it has no role on a modern Windows system.