Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Enabling Exchange Shell to return output of more than 1 command.

$
0
0

I have a simple test script as follows :

Get-RemoteDomain | select identity, DeliveryReportEnabled

Get-TransportConfig | Select Identity, MaxRecipientEnvelopeLimit

Get-PopSettings | fl -property LoginType


When I execute the above script in Exchange Management Shell, it usually returns proper output for the 1st command. The output of subsequent commands will usually be out of context or no output.

In this case, the 1st and 3rd command has proper output, but the 2nd command will output "Transport Settings". But when I swith the 2nd command (MaxRecipientEnvelopeLimit) with the 1st command (DeliveryReportEnabled), it will have proper output. In this case, the 2nd command now (DeliveryReportEnabled) will have out of context output "Default".

Any help is greatly appreciated,
Confused Guy.




Viewing all articles
Browse latest Browse all 21975

Trending Articles



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