Share via

Script to Log off users from Office

Anonymous
2022-11-08T03:36:09+00:00

Dear All,

           As we have a few shared office laptops which are shared by multiple users whereby some users did not log off after usage. Is there any scripts that we can run to log the user from office when they shutdown or after some time of inactivity ?

Pls help

Thanks

Best Regards,

Edwald

Microsoft 365 and Office | Install, redeem, activate | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-11-08T07:47:38+00:00

    Dear Edwald,

    Welcome to the forum here.

    May I know whether you want users to log out of the computers automatically or not?

    If you want users to be signed out of browser, desktop and mobile applications accessing Office 365 resources across all devices, you can run the command mentioned in Revoke-SPOUserSession (Microsoft.Online.SharePoint.PowerShell) | Microsoft Learn.

    If there is no Azure AD environment, just the local AD environment, I suggest you post a new thread in the Windows category on our forum for further help.

    Thanks for your effort and time.

    Sincerely,

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments