en-US

SPOBrowserIdleSignOut

Applies to : SharePoint Online

Sets the current configuration values for Idle session sign-out.

Use this cmdlet to set the current configuration values for Idle session sign-out, the time at which users are warned and subsequently signed out of Office 365 after a period of browser inactivity in SharePoint and OneDrive

Available cmdlets

Parameters

Name Type Default value Accepted values
Enabled System.Boolean
SignOutAfter System.TimeSpan
WarnAfter System.TimeSpan

Examples

Example 1

Set-SPOBrowserIdleSignOut -Enabled:$true -WarnAfter  "0.00:45:00" -SignOutAfter  "0.01:00:00"

This example enables the browser idle sign-out policy, sets a warning at 45 minutes and signs out users after a period of 60 minutes of browser inactivity.

Example 2

Set-SPOBrowserIdleSignOut -Enabled:$true -WarnAfter (New-TimeSpan -Minutes 45) -SignOutAfter (New-TimeSpan -Hours 1)

This example enables the browser idle sign-out policy, sets a warning at 45 minutes and signs out users after a period of 60 minutes of browser inactivity. This example leverages the use of New-TimeSpan cmdlet to create the required timespan values.

Microsoft Learn documentation