Inspecting the Contents of Export-TransportRuleCollection

Exchange provides Export-TransportRuleCollection and Import-TransportRuleCollection for transport rules. As their names suggest, these cmdlets export and import transport rules; they are not intended for retrieving or inspecting rule settings. Use Get-TransportRule to retrieve the settings.

However, the output of Export-TransportRuleCollection contains New-TransportRule commands wrapped in XML, so you can read its contents. You may not need to do this often, but here is how.

Read more

Default Output of Remote PowerShell Commands

Note

This article is a technical record from 2018. The Exchange Online Remote PowerShell connection that uses New-PSSession is no longer available following Microsoft’s retirement of Remote PowerShell. The original procedure and code are preserved here for historical reference. For the current connection method, see Microsoft’s Connect to Exchange Online PowerShell. For details about the retirement, see Microsoft’s Deprecation of Remote PowerShell in Exchange Online.

Read more

Under the Hood: Exchange Online PowerShell with MFA

Note

This article is preserved as a technical record of an investigation from June 2017. The Microsoft Exchange Online PowerShell module discussed here is the older module that preceded the currently available ExchangeOnlineManagement module, and it is no longer available. The internal behavior described in this article does not apply to the current connection method. For instructions on connecting with the current ExchangeOnlineManagement module, see Microsoft’s Connect to Exchange Online PowerShell.

Read more

View all posts