Hello everybody, nothing new to add to this nice post?
Anyway, just to give it a little bumb, I am posting a strange problem and a solution...
After a recent win10 update (July 24) I encountered following problems when running some of our tweaks..
Code:
Set-NetOffloadGlobalSetting : Invalid class
At line:1 char:1
+ Set-NetOffloadGlobalSetting -ReceiveSideScaling Enabled
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetOffloadGlobalSetting:ROOT/StandardCi...adGlobalSetting) [Set-Net
OffloadGlobalSetting], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Set-NetOffloadGlobalSetting
Set-NetOffloadGlobalSetting : Invalid class
At line:1 char:1
+ Set-NetOffloadGlobalSetting -Chimney Disabled
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetOffloadGlobalSetting:ROOT/StandardCi...adGlobalSetting) [Set-Net
OffloadGlobalSetting], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Set-NetOffloadGlobalSetting
Set-NetOffloadGlobalSetting : Invalid class
At line:1 char:1
+ Set-NetOffloadGlobalSetting -TaskOffload Disabled
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetOffloadGlobalSetting:ROOT/StandardCi...adGlobalSetting) [Set-Net
OffloadGlobalSetting], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Set-NetOffloadGlobalSetting
Set-NetOffloadGlobalSetting : Invalid class
At line:1 char:1
+ Set-NetOffloadGlobalSetting -NetworkDirect Enabled
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetOffloadGlobalSetting:ROOT/StandardCi...adGlobalSetting) [Set-Net
OffloadGlobalSetting], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Set-NetOffloadGlobalSetting
Set-NetOffloadGlobalSetting : Invalid class
At line:1 char:1
+ Set-NetOffloadGlobalSetting -NetworkDirectAcrossIPSubnets Blocked
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetOffloadGlobalSetting:ROOT/StandardCi...adGlobalSetting) [Set-Net
OffloadGlobalSetting], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Set-NetOffloadGlobalSetting
Set-NetOffloadGlobalSetting : Invalid class
At line:1 char:1
+ Set-NetOffloadGlobalSetting -PacketCoalescingFilter Disabled
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetOffloadGlobalSetting:ROOT/StandardCi...adGlobalSetting) [Set-Net
OffloadGlobalSetting], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Set-NetOffloadGlobalSetting
Disable-NetAdapterPowerManagement : Invalid class
At line:1 char:1
+ Disable-NetAdapterPowerManagement -Name *
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetAdapter...mentSettingData:ROOT/StandardCi...mentSettingData) [Di
sable-NetAdapterPowerManagement], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Disable-NetAdapterPowerManagement
Get-NetAdapterAdvancedProperty : Invalid class
At line:1 char:1
+ Get-NetAdapterAdvancedProperty -Name Ethernet
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetAdapter...ertySettingData:ROOT/StandardCi...ertySettingData) [Ge
t-NetAdapterAdvancedProperty], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Get-NetAdapterAdvancedProperty
Get-NetTCPSetting : Invalid class
At line:1 char:1
+ Get-NetTCPSetting -Setting Compat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_NetTCPSetting:ROOT/StandardCimv2/MSFT_NetTCPSetting) [Get-NetTCPSet
ting], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Get-NetTCPSetting
Now, it might be the win update or some service I disabled after the update, but lucky for me , the solution was simple, as per this link
https://superuser.com/questions/1152...-invalid-class
Now all tweaks work again ...
BTW
One of regedit lines:
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "DisableTaskOffload" /t REG_DWORD /d "1" /f
was with the value "0" ... It seems logical to me that if the registry string is "Disable..." than the right value for disabling something should be "1". ....
Bookmarks