On this page
Find the disabled device
Open Device Manager from the Start menu. Expand the category for the hardware, right-click the affected entry, and open Properties. On the General tab, check that Device status shows Code 22.
A computer can list several network adapters, cameras or sound devices. If you are unsure which entry you need, identify it by model or hardware IDs before changing it. Keep an intentionally disabled device as it is until you know why it was disabled.

Enable that device in Device Manager
Return to the device list, right-click the identified entry and choose Enable device. If Windows requests administrator permission, use an authorized administrator account. If the action is unavailable on a work or school PC, ask the administrator to check the device policy.
Start here before looking for a replacement driver. The status indicates that the device was disabled, and enabling it is the direct action Microsoft lists for this code.
Check what Windows reports after enabling it
Reopen the device’s Properties and read Device status. If it reports normal operation, test the function that brought you here. For example, choose the adapter in your network settings or open the camera in the app that needs it.
If the device now reports Code 10, Windows is reporting a start failure. If it shows Code 28, Windows is reporting that drivers are not installed. Follow the guide for the new code. If Device Manager reports normal operation but a single app still fails, check that app’s device selection.
If the device becomes disabled again
Record when Code 22 returns, such as after restarting or running a device utility. Tell the device maker or IT which entry is affected and whether the enable action worked temporarily. This is more useful than repeatedly changing every device in that category.
If there is no active entry for the hardware and you can only see an older grayed-out one, confirm its actual status. Code 45 concerns detection of previously connected hardware and calls for different checks.