westtech.dev something to know

Sitecore PowerShell Extensions Kick Users

Originally published on michaellwest.blogspot.com

Here’s a quick way to kick users :)


# Use the static class to get the list of sessions then for each session kick the user using the session id.
[Sitecore.Web.Authentication.DomainAccessGuard]::Sessions | 
    % { [Sitecore.Web.Authentication.DomainAccessGuard]::Kick($_.SessionId) }