Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

I am missing something simple

$
0
0

Hi guys, I know that I am missing something very simple, I just can't figure out what it is. I have a list of servers that I need to get a list of the DNS servers that they are pointing to.

This is what I have

Powershell
Get-Contentdnsservers.txt|Foreach-Object{Get-DnsClientServerAddressExpandPropertyServerAddresses}|Export-csv-pathdnsforwarderlist-output.csv

when i run it, i get "Get-DnsClientServerAddress : A parameter cannot be found that matches parameter name 'ExpandProperty'." yet when i run it against the computer that I am on, i get the correct info.

How can I run this against a list of remote servers

please let me know

thanks

app


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>