Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook

By : Jason Ventresco
Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook

By: Jason Ventresco

Overview of this book

Table of Contents (18 chapters)
VMware Horizon View 6 Desktop Virtualization Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Managing VMware Horizon View with PowerCLI
Index

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.