0 XP

Session switches, Connect-IPPSSession and connection checks

Checking the connection

Get-PSSession does not show REST connections. After Connect-ExchangeOnline succeeds, run Get-ConnectionInformation to see what you are connected to. Enter-PSSession aims at an RPS endpoint that no longer exists, and running a mailbox cmdlet only proves a cmdlet worked; it does not list connections.

Switches worth knowing

  • -ShowBanner:$false hides the connection banner, which shows by default. Use exactly that form. There is no -HideBanner.
  • -SkipLoadingFormatData makes connecting faster, for example from Windows services or the SDK.
  • -CommandName imports only the cmdlets you list, which saves memory.
  • -LoadCmdletHelp (3.7.0 and later) loads cmdlet help. Since 3.7.0, help does not load by default, so Get-Help shows almost nothing until you connect with it. The old -SkipLoadingCmdletHelp is now a no-op.
  • -DisableWAM (3.7.2 and later) is the fix for Web Account Manager sign-in errors. 3.7.0 turned WAM sign-in on by default.
  • -EXOModuleBasePath (3.9.1 and later) sets where the module's temporary files go.
  • -PSSessionOption does not work in REST connections.

Security & Compliance PowerShell

Connect-IPPSSession opens Security & Compliance PowerShell. It has used REST since 3.2.0 (June 2023), 3.8.0 added -AccessToken, and 3.9.0 added -EnableSearchOnlySession for eDiscovery cmdlets.

The platform trap: PowerShell 7 is supported on Windows, Linux and macOS for Connect-ExchangeOnline, but Connect-IPPSSession is not available in PowerShell 7 on macOS or Linux. A Mac admin who needs it runs it from a Windows machine. No module update, -Device sign-in or -UseRPSSession changes that.

On Windows 10, the .NET 8 and .NET 10 module builds (3.5.0 and later) are supported only on in-support Enterprise or IoT LTSC editions.

Knowledge check

5 questions on what you just read. Each answer shows the full explanation and its source.

Loading…