Exception setting "NetProfile": Cannot convert the "System.Object[]" value of type "System.Object[]" to type "Microsoft.Management.Infrastructure.CimInstance"

When running the PowerShell command Get-NetIPConfiguration, you may see the exception:

Exception setting "NetProfile": Cannot convert the "System.Object[]" value of type "System.Object[]" to type "Microsoft.Management.Infrastructure.CimInstance"

This occurred on my Windows Nano Server which, for some reason, had obtained an invalid Default Gateway of 0.0.0.0


Fix

To fix the exception, remove the invalid Default Gateway.  To do this on Windows Nano Server, I used the following PowerShell command:

remove-netroute -interfaceindex 3 -NextHop 0.0.0.0


Comments

Popular posts from this blog

LG TV This app will now restart to free up more memory

LG TV Clear All Browsing History Data

LG TV turn off Quick Start in settings