How to fix "Windows is still setting up the class configuration for this device. (Code 56)"

Prefer to fix it yourself? The manual steps follow.

  • 7methods
  • 5 to 60 minutes
  • Intermediate
Start fixing

Applies to Windows 11 and Windows 10 PCs where a Wi-Fi, Ethernet or virtual network adapter shows Code 56 in Device Manager

7 methods in this guide
  1. What Code 56 means
  2. Causes, ranked
  3. Check the cause
  4. The fixes
  5. 1. Run Network reset
  6. 2. Turn the setup services on
  7. 3. Remove VPN leftovers
  8. 4. Remove the VMware entry
  9. 5. Reinstall the driver
  10. 6. Repair Windows files
  11. 7. Reinstall, keep files
  12. Still not fixed
  13. Prevent it
  14. FAQ
Question

Hello. My Windows PC has no Internet and I see the "Windows is still setting up the class configuration for this device. (Code 56)" error in Device Manager. What do I do?

Code 56 means Windows loaded the network adapter's driver but never finished connecting it to the network stack, so the adapter has a yellow warning sign and no internet. Microsoft says it is often temporary. If a restart does not clear it, run Network reset first.

Short answer

Code 56 means the adapter's driver is loaded but Windows never finished its network setup. Restart once, then run Network reset in Settings, which is Microsoft's own fix (Fix 1). If that does nothing, set the Network Setup Service back to Manual and start it (Fix 2). After a VPN, Hyper-V or VMware change, remove what that tool left behind (Fixes 3 and 4).

At a glance
ErrorWindows is still setting up the class configuration for this device. (Code 56). Microsoft's internal name is CM_PROB_NEED_CLASS_CONFIG.
Where it appearsIn Device Manager, in the Device status box of a network adapter's Properties. The adapter has a yellow warning sign and the PC has no internet on it.
Main causeWindows' network settings are damaged, most often by a VPN, a virtual machine program or a virtual switch, so the last setup step for the adapter fails.
Fastest fixRestart, then Settings > Network & internet > Advanced network settings > Network reset (Fix 1).
Also written ascode 56, windows code 56, error code 56, code 56 network adapter, CM_PROB_NEED_CLASS_CONFIG, "Windows todavía está estableciendo la configuración de clase para este dispositivo. (Código 56)".
AffectsNetwork adapters only in practice: Wi-Fi, Ethernet, USB tethering and VPN or virtual adapters. Windows 11 and Windows 10.
Vendor statusMicrosoft documents Code 56 as often temporary and names Network reset as the fix when it stays. No Microsoft known issue for it was listed on 15 October 2026.
Where the cause is loggedC:\Windows\INF\setupapi.dev.log (lines starting with !!!) and the result of netcfg -q ms_tcpip in an admin Terminal.
Time to fix5 minutes for a restart and Network reset. 30 to 60 minutes when a service, a leftover virtual adapter or a repair install is the cause.

Facts checked on 15 October 2026. Steps written for Windows 11 (25H2 and 26H2) and Windows 10 22H2.

What "Windows is still setting up the class configuration for this device" means

Code 56 is a Device Manager problem code. Microsoft's driver documentation names it CM_PROB_NEED_CLASS_CONFIG and shows one message for it: Windows is still setting up the class configuration for this device. (Code 56). In plain words, the driver for the device is installed, but a second setup step for its device class has not finished yet.

For network adapters that second step is big. Windows must register the adapter with the network stack and bind TCP/IP, the Microsoft client and any VPN or firewall filters to it. Microsoft says the code is often temporary: when the setup ends, the device restarts and the code goes away. When it stays, the adapter never comes online, which is why searches for "still setting up" and "code 56" come from people with no internet.

Diagram of four stages of network adapter setup: found by Plug and Play, driver loaded, class configuration by the Device Install Service and Network Setup Service, then online, with stage three marked as where Code 56 stops
Code 56 means the driver loaded but the class configuration stage never finished, so the adapter never gets online.
The spellings people search for, and what each one means
What you see or typeWhat it means
Windows is still setting up the class configuration for this device. (Code 56)The full English message in the adapter's Device status box
code 56, windows code 56, code +56, error code 56Short searches for the same Device Manager code
CM_PROB_NEED_CLASS_CONFIGThe code's name in Microsoft's documentation and in PowerShell output
Windows todavía está estableciendo la configuración de clase para este dispositivo. (Código 56)The Spanish Windows message; the fixes on this page are the same
Настройка класса устройства продолжается. (Код 56)The Russian Windows message; the same error
Not a broken network card

Device Manager shows the adapter by its real name, so Windows has found the hardware and loaded a driver. Code 56 is a software setup problem. Do not buy a new card or reset the BIOS before you have tried the fixes below.

Why Code 56 stays: the causes, most common first

Microsoft names two reasons why a network adapter keeps Code 56: the driver's setup file has invalid network settings, or the system's network state is damaged. In practice the damage nearly always comes from software that adds its own adapters and filters to the network stack.

Causes ranked by how often they explain Code 56, each with its fix
How oftenCauseSignFix
Most oftenDamaged network settings after a VPN, a firewall or a network tool was installed or removedCode 56 started right after that changeFix 1, Fix 3
OftenThe Network Setup Service or Device Install Service is set to DisabledNetwork reset changes nothing; the adapter's Properties tabs are mostly emptyFix 2
OftenA half-removed Hyper-V, WSL or VMware network partYou use or used virtual machines, WSL 2 or DockerFix 3, Fix 4
Less oftenA new driver package with bad network entriesCode 56 began after a driver update and only on that adapterFix 5
RarelyDamaged Windows system files or network registrationEvery network adapter shows Code 56, including USB onesFix 6, Fix 7
Why the Network Setup Service matters

The Network Setup Service (NetSetupSvc) does the actual network setup work for new adapters. Some users set it to Disabled to stop high CPU use. Nothing breaks until the next adapter or driver needs setting up, and then Code 56 appears and no restart clears it.

Check what is blocking the setup before you change anything

Three commands tell you in two minutes whether the network setup itself is stuck and whether a service is the reason. Right-click Start and select Terminal (Admin), then run them one by one.

  1. List the network adapters that have a problem and their problem code:
    Get-PnpDevice -Class Net | Where-Object Status -ne 'OK' | Format-Table FriendlyName, Status, Problem, InstanceId
  2. Look for CM_PROB_NEED_CLASS_CONFIG in the Problem column. Note any ROOT\VMS_ or VMware entries too: those are virtual adapters.
  3. Test whether Windows' network setup answers at all:
    netcfg -q ms_tcpip
  4. A healthy PC replies that ms_tcpip is installed. If you see error code: 0x800106d9, the network setup is stuck waiting for a restart that never helps. Go to Fix 2.
  5. Check the two services Code 56 depends on:
    Get-Service NetSetupSvc, DeviceInstall | Format-Table Name, Status, StartType
  6. StartType should be Manual for both. Disabled on either one is your cause: go straight to Fix 2.
The setup log

Windows writes each device install to C:\Windows\INF\setupapi.dev.log. Open it in Notepad, search for your adapter's name and read the lines that start with !!! near the time Code 56 began. A line saying the DeviceInstall service is not started points to Fix 2.

How to fix Code 56 on a network adapter

Restart the PC once first: Microsoft says Code 56 is often temporary and clears when the setup finishes. If it is still there, Fix 1 helps most readers. Each fix tells you what to try next. Keep the Wi-Fi password and any VPN login at hand, since several fixes remove network settings.

What you see or haveStart withThen
Code 56 on Wi-Fi or Ethernet, no other clueFix 1Fix 2
Network reset did nothing, or netcfg -q ms_tcpip shows 0x800106d9Fix 2Fix 3
A VPN, Hyper-V, WSL 2 or Docker was added or removed before it startedFix 3Fix 1
VMware Workstation or Player is, or was, on the PCFix 4Fix 3
It started right after a new network driverFix 5Fix 1
Every adapter fails and nothing above helpedFix 6Fix 7

Fix 1. Run Network reset in Settings

10 minutesLow riskCode 56 is still there after a restart, on any network adapter.

Microsoft's own advice for a network adapter that keeps Code 56 is to reset the network state with the Network reset button. It removes and reinstalls every network adapter and puts network components back to their defaults, so the class setup runs again from a clean start.

Table of six situations, such as Code 56 after a VPN change or after a new network driver, each pointing to the fix number to start with
Pick your first fix by what changed on the PC; most readers start with Fix 1.
  1. Restart the PC once and check Device Manager again. If the yellow sign is gone, you are done.
  2. Open Settings > Network & internet > Advanced network settings and select Network reset. On Windows 10 it is Settings > Network & Internet > Status > Network reset.
  3. Select Reset now, then Yes. Windows restarts by itself after a few minutes.
  4. After the restart, open Device Manager and expand Network adapters. Check that the adapter has no yellow sign.
  5. Connect to your Wi-Fi again and set up your VPN again if you use one.
Network reset page with the Reset now button: screenshot taken on Windows 11 26H2
Reset now removes and reinstalls every network adapter, which makes Windows run the class configuration for each one again.

The command line resets (netsh winsock reset, netsh int ip reset) are part of the same procedure. They do not touch the adapter setup itself, so for Code 56 the Settings button matters most. Step by step: Reset the network and flush DNS

It worked if: The adapter shows This device is working properly in its Properties, and the Wi-Fi list or the cable connection comes back.

If not: If nothing changed, a service is probably blocking the setup. Go to Fix 2.

Fix 2. Set the Network Setup Service and Device Install Service back to Manual

10 minutesLow riskNetwork reset changed nothing, netcfg -q ms_tcpip shows 0x800106d9, or a tuning tool or guide told you to disable services.

The Device Install Service runs the second stage of every device install, and the Network Setup Service does the network part of it. If either one is Disabled, the class configuration can never run, and a restart does not help because a Disabled service does not start.

  1. Press Win + R, type services.msc and press Enter.
  2. Find Network Setup Service and double-click it.
  3. Set Startup type to Manual and select Apply, then Start.
  4. Do the same for Device Install Service.
  5. Open Device Manager, right-click the adapter with Code 56 and select Disable device, then Enable device.
  6. If the yellow sign stays, restart the PC.
Windows Update Properties, General tab: service name wuauserv, startup type Manual, status Running: screenshot taken on Windows 11 26H2
The service's Properties window, where Startup type must read Manual for both the Network Setup Service and the Device Install Service.

The same in Terminal (Admin), one line after the other:

Set-Service NetSetupSvc -StartupType Manual
Start-Service NetSetupSvc
Set-Service DeviceInstall -StartupType Manual

If Hyper-V or WSL 2 is on the PC, check the Host Network Service (hns) too and set it to Manual if it is Disabled. More on the Services window: Check and restart Windows services

It worked if: Within seconds of the disable and enable, the adapter loses its yellow sign, and netcfg -q ms_tcpip now reports that ms_tcpip is installed.

If not: If both services were already on Manual, the block is a leftover virtual adapter. Go to Fix 3.

Fix 3. Remove the VPN or virtual adapter that broke the network setup

20 minutesLow riskCode 56 began after you installed, updated or removed a VPN, a firewall, Hyper-V, WSL 2 or Docker.

VPN clients and virtual machine tools add their own virtual adapters and filters to the same network setup that Code 56 is stuck in. A half-removed one can make every new setup fail, so removing it cleanly lets the real adapter finish.

  1. Open Control Panel > Programs > Uninstall a program.
  2. Select the VPN, firewall or network tool that came before the error and select Uninstall. Restart when it asks.
  3. In Device Manager, select View > Show hidden devices and expand Network adapters.
  4. Right-click any faded or warning-marked adapter that belongs to the removed tool, such as a TAP, WireGuard or Hyper-V entry, and select Uninstall device.
  5. If a Hyper-V entry will not go away, remove it by its ID from Terminal (Admin). Use the InstanceId from the check above, for example:
    pnputil /remove-device "ROOT\VMS_VSMP\0000"
  6. Restart the PC and check the real adapter in Device Manager.
Control Panel in Category view with the Uninstall a program link under Programs, where a VPN client or network tool is removed
Uninstall a program in Control Panel removes a VPN client together with its virtual adapter; shown on Windows 10, the same screen on Windows 11.

Some VPNs can only be removed from Control Panel, not from Settings. Step by step: Uninstall a program or app in Windows. Install the newest version of the VPN again only after the adapter works.

It worked if: The virtual adapters of the removed tool are gone, and the Wi-Fi or Ethernet adapter shows no yellow sign after the restart.

If not: If you use or used VMware, go to Fix 4. Otherwise run Fix 1 once more now that the tool is gone.

Fix 4. Delete the leftover VMware network entry from the registry

10 minutesRead the warningVMware Workstation or Player is on the PC, or was on it, and Code 56 stays after Fixes 1 to 3.

Users on Microsoft Q&A report that a broken VMware install leaves a network class entry in the registry that makes every network setup fail with Code 56. Removing that one key lets Windows finish the setup. It does nothing on a PC that never had VMware.

Back up the registry first

A wrong registry change can break Windows features. Back up first: Back up the registry before editing it. If VMware still works and you need it, uninstall and reinstall VMware instead of deleting the key by hand.

  1. Open Terminal (Admin) and check whether the key exists:
    reg query "HKLM\SOFTWARE\Classes\CLSID\{3d09c1ca-2bcc-40b7-b9bb-3f3ec143a87b}"
  2. If it says the system was unable to find the key, stop here: this fix is not for your PC.
  3. Save a copy of the key to your Desktop:
    reg export "HKLM\SOFTWARE\Classes\CLSID\{3d09c1ca-2bcc-40b7-b9bb-3f3ec143a87b}" "%USERPROFILE%\Desktop\vmware-key.reg"
  4. Delete the key:
    reg delete "HKLM\SOFTWARE\Classes\CLSID\{3d09c1ca-2bcc-40b7-b9bb-3f3ec143a87b}" /f
  5. Restart the PC, then check the adapter in Device Manager.

It worked if: After the restart the adapter loses Code 56 and connects. If anything else breaks, double-click vmware-key.reg on the Desktop to put the key back.

If not: If the key was not there or deleting it changed nothing, go to Fix 5.

Fix 5. Reinstall the network adapter driver from the PC or adapter maker

15 minutesRead the warningCode 56 began after a driver update, only on one adapter, and the setup services are fine.

Microsoft says a driver's setup file with invalid network entries can keep a NET-class device on Code 56. A different driver package from the PC or adapter maker replaces those entries, and removing the old package stops Windows from picking it again.

Download the driver first

The adapter with Code 56 has no internet anyway, but removing its driver can also affect a working second adapter. Download the LAN or WLAN driver for your PC model on another device or adapter and copy it over on a USB stick before you start.

  1. In Device Manager, expand Network adapters, right-click the adapter with Code 56 and select Uninstall device.
  2. Tick Attempt to remove the driver for this device and select Uninstall.
  3. Restart the PC. Windows may install a basic driver of its own.
  4. Run the maker's driver installer you saved, then restart once more.
  5. If the code began after an update and the old driver worked, use Roll Back Driver on the Driver tab instead.
Uninstall Device dialog with the remove driver checkbox: screenshot taken on Windows 11 26H2
Uninstall device with the remove driver box ticked deletes the network driver package, so Windows cannot reuse the one with bad entries.

All driver buttons with screenshots: Update, roll back or reinstall a driver. A similar driver-level network problem with the adapter framework is covered in our NetAdapterCx.sys guide.

It worked if: The adapter appears once, with the maker's driver version on the Driver tab and This device is working properly in its status.

If not: If every adapter has Code 56, or it returns with any driver, go to Fix 6.

Fix 6. Repair Windows system files, or go back with System Restore

30 minutesLow riskEvery network adapter shows Code 56, or Fixes 1 to 5 did not help.

The network setup runs inside Windows components such as netcfgx.dll. DISM and SFC replace damaged copies of them, and System Restore takes the network registration back to a date before Code 56 without touching your files.

In Terminal (Admin), one after the other:

DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Step by step with screenshots: Run DISM and SFC to repair Windows system files. DISM needs internet to fetch clean files; if no adapter works, connect with a USB cable to a phone's tethering or skip to System Restore.

  1. Press Win + R, type rstrui and press Enter.
  2. Choose a restore point from before Code 56 appeared.
  3. Select Scan for affected programs to see which apps and drivers will be removed.
  4. Select Next and Finish, and let Windows restart.
System Restore list of restore points with date, description and type: screenshot taken on Windows 11 26H2
Choose a restore point from before the network adapter showed Code 56; your personal files are not changed.

It worked if: SFC reports no integrity violations or says it repaired them, or System Restore reports success, and the adapter connects.

If not: Go to Fix 7 and repair Windows with an in-place reinstall that keeps your files.

Fix 7. Repair Windows with an in-place reinstall that keeps your files

60 minutes or moreLow riskNothing above worked and the adapter works in another PC or in a live USB system.

A repair install puts a fresh copy of Windows over the old one and registers the whole network stack again, while your files and apps stay. It is the last software fix before suspecting the hardware.

  1. Back up your important files first. Step by step: Reinstall Windows without losing files
  2. On Windows 11, open Settings > System > Recovery and select Reinstall now next to Fix problems using Windows Update.
  3. Without that option, or on Windows 10, run setup.exe from Windows installation media and choose Keep personal files and apps.
  4. Let the PC restart several times until you reach the sign-in screen, then check the adapter in Device Manager.
No internet for the repair

The Windows Update route needs a working connection. Without one, make the installation USB stick on another PC with Microsoft's Media Creation Tool and run setup.exe from it.

It worked if: Windows starts with your files and apps in place, and the network adapter connects without Code 56.

If not: See the next section: at this point, test the hardware and contact the PC maker.

Still Code 56: what to check and whom to ask

If a repair install did not clear Code 56, collect what support needs to see before you ask. Most of it is in the three checks near the top of this page.

  • The output of the Get-PnpDevice command, which shows the problem code of every network adapter.
  • The result of netcfg -q ms_tcpip and of the Get-Service NetSetupSvc, DeviceInstall check.
  • The lines starting with !!! near the error time in C:\Windows\INF\setupapi.dev.log.
  • Your Windows edition and version from Settings > System > About.
  • Every VPN, firewall, virtual machine program or network tool installed now or recently.
Where to askWhen
Your PC or motherboard maker's supportFirst: they ship the tested network driver for your model
The VPN or virtual machine program's supportIf Code 56 began after installing or removing their product
Microsoft Q&A or Feedback Hub, category Network and InternetIf every adapter fails on a clean Windows install
When it is hardware

Code 56 itself is a software code. Suspect the card only if it also fails in a live USB system or another PC, or if Device Manager shows other codes for it after a repair install. A USB Wi-Fi or Ethernet adapter is a cheap way to test.

How to keep Code 56 from coming back

Do
  • Remove VPN clients and virtual machine programs with their own uninstaller, then restart.
  • Leave the Network Setup Service and Device Install Service on Manual.
  • Get network drivers from the PC or adapter maker and keep the installer of the version that works.
  • Create a restore point before installing a VPN, Hyper-V, WSL 2 or Docker.
Do not
  • Disable Windows services to cut CPU use or speed up startup.
  • Run two VPN clients side by side.
  • Delete adapters or registry keys you do not recognise without a backup.
  • Use third-party driver updater programs for network cards.

Windows 10 left support on 14 October 2025. VPN and adapter makers may stop testing new versions on it, so a PC that can run Windows 11 is less likely to meet this kind of setup failure after an update.

Frequently asked questions

What is Code 56 in Device Manager?

Code 56 is the Device Manager code for CM_PROB_NEED_CLASS_CONFIG. It means the device's driver is installed, but Windows has not finished the extra setup its device class needs. Microsoft says this is often temporary and the code clears when the setup ends. On network adapters it can stay, because the network part of the setup fails. Then the adapter has a yellow warning sign and no connection. Start with a restart and Network reset (Fix 1).

Why does my Wi-Fi adapter show Code 56 and no networks?

Because the adapter never finished its network registration. The driver is loaded, so Windows knows the card by name, but TCP/IP and the other network parts were never bound to it. The Wi-Fi list then stays empty or shows nothing useful. The fix is the same as for Ethernet: Network reset first, then check that the Network Setup Service is set to Manual (Fix 2), then remove VPN or virtual adapter leftovers (Fix 3).

How do I fix Code 56 on Windows 11?

Restart once, then open Settings > Network & internet > Advanced network settings > Network reset and select Reset now. That is Microsoft's own fix for a network adapter that keeps this code. If the code stays, open Services and set Network Setup Service and Device Install Service to Manual, then disable and enable the adapter. The steps are the same on Windows 10, only the Network reset path differs, as shown in Fix 1.

Is "Windows is still setting up the class configuration" a hardware problem?

Almost never. The message comes from Windows' setup after the driver has loaded, so the hardware has already been found and talked to. The usual causes are damaged network settings, a disabled setup service or a leftover VPN or VMware component. Suspect the card only if it fails the same way in a live USB system or another PC. Resetting the BIOS, which some guides suggest, does not touch the step where Code 56 stops.

Can a VPN cause Code 56?

Yes, it is one of the most common triggers. VPN clients add their own virtual adapters and network filters, and an install, update or uninstall that goes wrong can leave the network setup broken for every adapter. Uninstall the VPN from Control Panel, remove its leftover adapters in Device Manager with hidden devices shown, restart and run Network reset. Install the newest VPN version again only after the adapter works (Fix 3).

Does VMware cause "Windows is still setting up the class configuration"?

It can. Users on Microsoft Q&A report that a broken VMware Workstation or Player install leaves a network class entry under HKLM\SOFTWARE\Classes\CLSID with the ID {3d09c1ca-2bcc-40b7-b9bb-3f3ec143a87b}, and that deleting it clears Code 56. Check first whether the key exists, back it up and the registry, then delete it (Fix 4). On a PC that never had VMware, this key is not there and the fix does not apply.

What does netcfg error 0x800106d9 mean with Code 56?

It means Windows' network setup is waiting for a restart to finish an earlier change, and it refuses every new change until then. If the Network Setup Service is Disabled, the earlier change can never finish, so no restart clears the wait and every adapter setup ends in Code 56. Set the Network Setup Service to Manual, start it, then disable and enable the adapter (Fix 2).

Will Network reset delete my files or Wi-Fi passwords?

It does not touch your files. It removes and reinstalls every network adapter and puts network settings back to their defaults. You will have to join your Wi-Fi network again with its password, and VPN clients or virtual switches may need setting up again. A static IP address or custom DNS server you entered by hand is also reset, so note them before you start.

What are code56s and code56.net searches about?

We could not find a Windows component with those names. People who type code56s or code56.net are most likely looking for this Device Manager error, written without a space. If your adapter shows Windows is still setting up the class configuration for this device, this page is the right one. A website or program that uses those names is a separate subject not covered here.

I searched in Spanish or Russian. Is this the same error?

Yes. "Windows todavía está estableciendo la configuración de clase para este dispositivo. (Código 56)" in Spanish and "Настройка класса устройства продолжается. (Код 56)" in Russian are the same Code 56 in a translated Windows. The menu names differ by language, but the order of fixes is the same: restart, Network reset, the Network Setup Service, then VPN and virtual adapter leftovers.

Sources

  1. Microsoft Learn: Code 56, CM_PROB_NEED_CLASS_CONFIG (learn.microsoft.com)
  2. Jack Ukleja: How to Fix Code 56 on Windows 10/11 (technical write-up on NetSetupSvc, netcfg and the VMware key) (jack.ukleja.com)

Did this fix work?

One click, no account. It tells the next reader which guides are worth their time.

We show the result once 20 readers have answered.
Still broken? Describe your case with the exact error text.

Questions and experiences: fix "Windows is still setting up the class configuration for this device. (Code 56)"

Still broken, or found a fix we did not cover? Ask here: members and our editors answer. Reading is open; writing needs a free account.

0 comments

…

4,322 members already hereThey read, write, comment and vote. 0 verified · 31 joined this year