foreach ($server in Get-ExchangeServer){Get-ReceiveConnector -identity ($server.ToString() + “Allow Relay External”) | select -ExpandProperty RemoteIPRanges | Out-file c:tempconnectors3.txt}
I’ve tried Export-CSV and I’ve tried just a simple > into a text file and I can’t get the output into the file.
submitted by /u/somebody2112
[link] [comments]
The post I can’t get this command to output to a file appeared first on How to Code .NET.