All servers have Private static IP and I'm trying to get the IP of the first NIC in the binding order withing the range of 10.0.0.0 - 10.255.255.255
$IP = Get-WmiObject win32_networkadapterconfiguration -ComputerName $server | where {$_.IPAddress -match "10"}
$IP.IPAddress[0] | Out-File -Append $IPAddresslist
For some reason this code outputs IP's on few server that are public and not from the first NIC in the binding order. Please help.
99upgrade