Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Prepend Column

$
0
0

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]

The post Prepend Column appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images