@Jeffrey Smith : Thanks for the link, will try to digest it.
@Mike F Robbins : Thanks for the explanation. But now I ran into another problem.
Format-List will conflict with some of the cmdlets that already use Format-List. Output formatting is hard to handle properly =/
For instance, this script will not work when I execute it with Format-List. ( ./script1 | fl )
It will spew errors.
"Maximum size of received emails : \r\n" Get-TransportConfig | Select Identity, MaxReceiveSize "\r\n" "Password Policy Settings : \r\n" Get-ActiveSyncMailboxPolicy | fl -property DevicePasswordHistory Get-ActiveSyncMailboxPolicy | fl -property DevicePasswordExpiration "\r\n"
note: I have replaced the escape character with a \ instead.