title: Getting Contents of Txt file into output
body: <p>I am trying to get a list of a specific adsite servers from all DC's.  I have the DC's saved as a txt file and I am running a foreach against it.  I would like to get the DC name from within the text file as part of the output.</p>
  
  <p>So far I have</p>
  
  <pre><code>$servers = gc dclist.txt 
  
  Foreach ($server in $servers){
  
  Get-ADReplicationSite SomeCity -server $server  |select InterSiteTopologyGenerator 
  
  }
  </code></pre>
  
  <p>And the output looks like:</p>
  
  <pre><code>CN=NTDS Settings,CN=DomainControllerX,CN=Servers,CN=SomeCity,CN=Sites,CN=Configuration,DC=domain,DC=com
  CN=NTDS Settings,CN=DomainControllerX,CN=Servers,CN=SomeCity,CN=Sites,CN=Configuration,DC=domain,DC=com
  CN=NTDS Settings,CN=DomainControllerX,CN=Servers,CN=SomeCity,CN=Sites,CN=Configuration,DC=domain,DC=com
  CN=NTDS Settings,CN=DomainControllerX,CN=Servers,CN=SomeCity,CN=Sites,CN=Configuration,DC=domain,DC=com
  </code></pre>
  
  <p>How can I get the corresponding server at the front of this output, ideally something like:</p>
  
  <pre><code>DomainControllerA CN=NTDS Settings,CN=DomainControllerX,CN=Servers,CN=SomeCity,CN=Sites,CN=Configuration,DC=domain,DC=com
  
  DomainControllerB CN=NTDS Settings,CN=DomainControllerX,CN=Servers,CN=SomeCity,CN=Sites,CN=Configuration,DC=domain,DC=com
  </code></pre>