Today my boss asked me to extend the session lifetime for Outlook Web App to have a lower login frequency. As described in the article Session timeouts for Office 365 the session timeout is set to 6 hours by default.

To change the session timeout the following steps have to be executed.

  1. Connect to Exchange Online using PowerShell
    • Open a new PowerShell session
    • Specify Credential
      $UserCredential = Get-Credential
      

      Enter work or school account credentials

    • Create and import a new PowerShell Session

      $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection;
      Import-PSSession $Session
      

    For more details concerning connecting to Exchange Online see here.

  2. Adjust ActivityBasedAuthenticationTimeoutInterval by executing the following command

    Set-OrganizationConfig -ActivityBasedAuthenticationTimeoutInterval 08:00:00
    
  3. Verify Configuration

    To verify the configuration execute the following command.

    Get-OrganizationConfig
    

1 Comment »

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.