January 2019
Intermediate to advanced
520 pages
11h 51m
English
The Send-SessionDisconnect command disconnects users based on the Horizon session ID. The following example command will disconnect the session belonging to the vjason.local\charles AD user:
Send-SessionDisconnect -Session_id (Get-RemoteSession -Username “vjason.local\charles”).session_id
The Horizon 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.
Read now
Unlock full access