adapter status: invalid class / Bug Reports / NetSetMan Support

NetSetMan Support

Search for already answered questions about NetSetMan (Pro) or ask new ones

You are not logged in.

#1 2022-02-25 22:02

rylanray
Member
Registered: 2022-02-25
Posts: 4

adapter status: invalid class

Geting an error each time i try to switch, ive tried updating. pls hlp.

Offline

#2 2022-03-01 13:59

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: adapter status: invalid class

Recently, we had a support case with this problem which turned out to be a problem with the WMI interface of Windows. The user was able to solve the issue like this:

  1. Run command line with elevated Administrator privileges (search "cmd" in start menu, right-click, choose "Run as Administrator").

  2. Enter one by one:

    winmgmt /salvagerepository
    winmgmt /verifyrepository
    winmgmt /resetrepository

    In case you get an error like "WMI repository reset failed", do this:

    net winmgnt stop
    (Confirm with Y)
    net winmgnt start
    winmgmt /resetrepository
  3. Reboot Windows

Offline

#3 2022-09-13 16:47

ClintonRH
New Member
Registered: 2022-09-13
Posts: 1

Re: adapter status: invalid class

Sorry to bring up an old topic but I'm having a similar issue. Started recently. No other changes to the PC including Windows Update.

[0:00] NetSetMan Pro 5.1.1
[0:00] Start: XXXXXX Cam LANs (2022-09-13 11:33:13)

[0:00] Start: Ethernet
[0:00] Adapter found
[0:00] IP: Start
           192.168.0.251 : 255.255.255.0
           192.168.1.222 : 255.255.255.0
           169.254.120.120 : 255.255.0.0
           192.168.10.251 : 255.255.255.0
[0:00] IP Address: OK
[0:00] Subnet Mask: OK
[0:00] IP: OK
[0:00] Gateway: Start
           192.168.0.1
[0:00] Gateway: OK
[0:00] Adapter - Refresh...
[0:04] Adapter - Refresh: Error
[0:04] Adapter Status: Invalid class

[0:04] Finish (11:33:18)

If you run it again you get Skips even though the address changes were not applied. Switch to a different profile and same error.

I tried the troubleshooting steps from the reply above. There's a typo on the first line of the commands listed above BTW.

C:\Windows\system32>winmmgmt /salvagerepository
'winmmgmt' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>winmgmt /salvagerepository
WMI repository is consistent

C:\Windows\system32>winmgmt /verifyrepository
WMI repository is consistent

C:\Windows\system32>winmgmt /resetrepository
WMI repository reset failed
Error code:     0x8007041B
Facility:       Win32
Description:    A stop control has been sent to a service that other running services are dependent on.


C:\Windows\system32>

On restart there is no change. Same thing happens when making changes to Wifi adapter and a USB-Ethernet dongle adapter. Windows network adapter properties has no issues changing settings.


EDIT:

Found a solution.

From same command window

net winmgnt stop 

select Y and it will stop other dependent services. Then

net winmgmt start

winmgmt /resetrepository

Reboot. Problem solved.

Last edited by ClintonRH (2022-09-13 16:57)

Offline

#4 2022-09-14 07:37

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: adapter status: invalid class

Thank you for sharing your solution! We have updated our instructions in the previous post accordingly.

Offline

#5 2022-10-13 17:37

rylanray
Member
Registered: 2022-02-25
Posts: 4

Re: adapter status: invalid class

You guys are awesome.

net winmgmt start

didnt work for me but

net stop

and

net start

Did work.

Offline

#6 2022-10-13 18:42

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: adapter status: invalid class

Thanks for your feedback, but Windows should be rebooted as the last step after those commands anyway, so "net stop/start" should actually not be necessary.

Offline

#7 2022-10-13 20:50

rylanray
Member
Registered: 2022-02-25
Posts: 4

Re: adapter status: invalid class

I did have to

net stop

before

winmgmt /resetrepository

would work.

Or maybe I just fumbled around enough and it worked, either way thank you!

Offline

#8 2022-10-13 20:53

rylanray
Member
Registered: 2022-02-25
Posts: 4

Re: adapter status: invalid class

I came looking for a solution 8 months later and found the post I made and completely forgot about. LMAO!

Offline

#9 2023-04-19 09:57

NetSetMan Support
Administrator
Registered: 2005-08-06
Posts: 1,878

Re: adapter status: invalid class

Another user with a broken Windows WMI interface reported that the commands and steps described above didn't solve his problem. His solution was to manually rebuild the WMI repository folder. We quote his solution with a warning: These are manual steps that require some understanding of what you are doing. Please do this only with caution and only if none of the previous instructions solved this issue for you.

user via email wrote:

I ended up solving this stopping WINMGMT, manually renaming the folder Repository to Repository.old found in C:\Windows\System32\wbem. Starting WINMGMT and running the following commands in an elevated cmd.

cd C:\Windows\System32\wbem\
for /f %s in ('dir /b *.mof') do mofcomp %s
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s

Offline