

He is a renowned international speaker and actively speaks at technical conferences, most recently in India, Canada, England, Bangladesh, Peru, Washington DC, Austin, New York, Chicago, Seattle, New Orleans, Baltimore, Philadelphia. Prashant is the co-author of the book “PowerShell for Office 365 “and is the technical reviewer of the book "Pro SharePoint 2013 Administration." He serves on the leadership committee for the Azure Data Fest conference, Artificial Intelligence Fest conference, Artificial Intelligence and Machine Learning User Group, DC Metro Office 365 User Group, SharePoint Saturday Baltimore event, and SharePoint Saturday Washington DC event.

Prashant has supported a multitude of government agencies and non-profit organizations in the Washington D.C.

He is a trusted advisor and Subject Matter Expert in Intelligent Business Process Automation, development and post-implementation adoption of complex custom solutions in AI, Machine Learning, Bots, Azure, Office 365, and SharePoint. (formerly Portal Solutions), one of the top 30 advisory and accounting firms in the United States. He currently works as a Senior Solution Architect at WithumSmith+Brown, P.C. Prashant G Bhoyar is a Microsoft AI MVP and Microsoft Certified Professional. Please post in the comments section, if you have more ideas for scripts. Note: If this is the first time you are running the PowerShell for Office 365, use the following two links to install the required tools. It may take up to an hour for all sign-outs. The user will be signed out from all the sessions across all the devices. Security Requirements: You need to be a SharePoint Online Global administrator to run the cmdlet Revoke-SPOUserSession. Revoke-SPOUserSession -user $user.UserPrincipalName -Confirm:$false #$users = Get-MsolUser -Department ‘Department Name’ -All #$users = Get-MsolUser -EnabledFilter EnabledOnly -All

If you would like to force sign out multiple users, you can also execute following script.Ĭonnect-SPOService -Url -Credential $cred Users -> Active Users ->Select the User and in the OneDrive settings, click Initiate sign out.In Office 365 Admin center, use the following the following steps. To force log out users, we can use the Office 365 Admin Center or PowerShell.
