How can we improve the networking platform and management in Windows Server?

get-netipconfiguration

Get-netipconfiguration throws exception if you have multiple default gateways configured for an interface.

PS C:\Users\Administrator> Get-NetIPConfiguration

Exception setting "NetProfile": "Cannot convert the "System.Object[]" value of type "System.Object[]" to type
"Microsoft.Management.Infrastructure.CimInstance"."
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\NetTCPIP\NetIPConfiguration.psm1:201 char:17
+ ... $IPConfig.NetProfile = Get-NetConnectionProfile -Interfac ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
+ FullyQualifiedErrorId : ExceptionWhenSetting

InterfaceAlias : Ethernet0
InterfaceIndex : 4
InterfaceDescription : Intel(R) 82574L Gigabit Network Connection
IPv4Address : 172.16.110.222
IPv6DefaultGateway :
IPv4DefaultGateway : {12.12.12.12, 172.16.110.2}
DNSServer : 172.16.110.100

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • DanielDaniel commented  ·   ·  Flag as inappropriate

        We are not able to repro this on Windows 10. What build number and OS version are you using?

      Feedback and Knowledge Base