$Computers = GC “c:\temp\servers.txt”
foreach($computer in $computers)
{
Get-WMIObject Win32_NetworkAdapterConfiguration -Computername $Computer | Where-Object {$_.IPEnabled -match "True"} |
Select-Object -property DNSHostName,@{N=”DNSServerSearchOrder”;
E={“$($_.DNSServerSearchOrder)”}},
@{N=’IPAddress’;E={$_.IPAddress}}|export-csv c:\temp\DNSlist.csv -NoTypeInformation -append
#@{N=’DefaultIPGateway’;E={$_.DefaultIPGateway}}
}
I like this site so much, bookmarked.
Wow, awesome blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is excellent, let alone the content!