Page 1 of 1

How to uninstall malfunctioning miniport and Regedit “Cannot Delete” “Error while deleting key”

Posted: Wed Mar 31, 2021 10:21 am
by RescuePC
How to uninstall malfunctioning miniport
and Regedit “Cannot Delete” “Error while deleting key”

1. You'll need a copy of psexechttp://technet.microsoft.com/en-us/sysi ... 97553.aspx (SysInternals)

2. Run RegEdit as the "SYSTEM" user:
PsExec.exe -i -s -d regedit.exe

3. Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ROOT\MS_NDISWANBH\0001

*Note: the final 0001 number may be different on your system, just look for the one with the "FriendlyName" of "WAN Miniport (Network Monitor) #2" or whatever the name of the malfunctioning adapter is.

4. Delete this key (the 0001 and everything beneath it)

5. Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\00xx (where XX maybe be any number) -- you can figure out which adapter it is by going to Device Manager and checking the Details tab of the malfunctioning adapter -- drop the menu down to "Driver Key" -- it will show you a number like {4d36e972-e325-11ce-bfc1-08002be10318}\0016

6. Delete that key and its subkeys.

7. Restart your system and the yellow exclamation should be gone