Prepend Column

Hi Guys, here my code:

 $dclist = Get-Content 2dclist.txt $exportlocation = "c:tmpdnsforwarders.csv" Foreach ($DC in $DomainControllers) { Get-DnsServerForwarder -ComputerName $DC | Export-CSV -Append -Path $exportlocation } 

I’m stuck trying to create a first column with the server name, cause the GetDnsServerForwarder only return the ipaddresses, but I need also to know which server has which addresses.

Is someone able to help me? 🙂

submitted by /u/fedechksum
[link] [comments]

Leave a Reply