OK, so supposedly, one of your users lost his device and you want to ensure he is disconnected from the services before changing any password.
So, here is a way to do it:
- You can try the below command to disable the function of the user mail features by PowerShell for a single user.
|
1 |
Set-CASMailbox -Identity "User" -OWAEnabled:$false -ActivesyncEnabled:$false -MAPIEnabled:$flase -POPEnabled:$false -IMAPEnabled:false |
Of course you can change the session time for all the users in your organization with the command below:
|
1 |
Set-OrganizationConfig ActivityBasedAuthenticationTimeoutInterval "00:01:00" |
And to invalidate a particular users’ O365 sessions across all their devices
|
1 |
Revoke-SPOUserSession -User user1@contoso.com |
Hope this gives you some ideas 🙂
