Logging Off the Horizon View Client Session
The
Send-SessionLogoff
command disconnects users based on the Horizon View client session ID.
How to do it…
The Send-SessionLogoff
command uses the same format as the Send-SessionDisconnect
command. Additionally, we will use the Get-RemoteSession
command to retrieve the target session ID.
The following example command will log off the session belonging to the vjason.local\elensherr
AD user:
Send-SessionLogoff -Session_id (Get-RemoteSession -Username "vjason.local\elensherr").session_id