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

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