Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Creating a persistent remote Exchange Shell session.

$
0
0

@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.


Viewing all articles
Browse latest Browse all 13067

Trending Articles