~ Iterate through all the server’s adapters and only give me output where there is an IP v 4 address
~ take this output and show me the DNS client IPs listed (typically would be 3 here)
~ for that adapter determined in #1 above, output all the DNS suffix settings
Ok, I have been playing around with this a little bit. I hope I was able to understand your requirements. I am assuming you have a list of target servers in a file in C:\ with the name ServerList.txt.
The regex expression to identify IPv4 IP addresses is not perfect but should be enough for this purpose. Coming up with a 100% accurate regex expression would be much harder and way more complex.