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
remove-netroute -interfaceindex 3 -NextHop 0.0.0.0
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
Post a Comment