I am trying to output basic IP config data for different interfaces on a host by
Get-NetIPConfiguration | select InterfaceAlias, IPv4Address, DNSServer,IPv4DefaultGateway
Get-NetIPConfiguration | ft -property ("InterfaceAlias", "IPv4Address", "DNSServer","IPv4DefaultGateway")
It outputs the IP info not in the form I want - just IP addresses. My understanding is that it is outputting the relevant Objects as defined in the Select. I am missing a way to extract the strings from the above objects. Would appreciate an explanation on how to deal with it.