Disconnecting the Horizon View Client session
The Send-SessionDisconnect
command disconnects users based on the session ID.
How to do it…
The following example command will disconnect the session belonging to the vjason.local\elensherr
AD user:
Send-SessionDisconnect -Session_id (Get-RemoteSession -Username "vjason.local\elensherr").session_id
How it works…
The Horizon View client session ID is a really long value that is difficult to work with, so we will use the Get-RemoteSession
command within the Send-SessionDisconnect
command instead in order to disconnect the target user.