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.
- 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.
-
Adjust
ActivityBasedAuthenticationTimeoutInterval
by executing the following commandSet-OrganizationConfig -ActivityBasedAuthenticationTimeoutInterval 08:00:00
- Verify Configuration
To verify the configuration execute the following command.
Get-OrganizationConfig
Hello niice blog