PowerShell_LogOff_Remote
This PowerShell Script is used to run as the currently logged on user and will run as expected if this user has rights to log off users or sessions (admin rights) from the remote server or workstation.
PowerShell Script to log off sessions and users from remote server or workstation