VMware Cloud Community
slater0013
Contributor
Contributor
Jump to solution

Horizon PowerCLI session statistics

Hello,

We are monitoring our Horizon Servers sessions with PowerCLI scripts !

Using Get-HVLocalSession we can measure how many users are connected, pools used, machine names, etc.

But, this function does not report "Application Session" when someone is not using a full Desktop but just a remote application.

Cmdlet Get-Application seems to return generic information about Applications but not users using them.

Any hints ?

Thanks,

GS.

Labels (2)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Did you try with Get-HVQueryResult with -EntityType SessionLocalSummaryView and then filter on sessionData.SesssionType -eq "Application"?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

3 Replies
LucD
Leadership
Leadership
Jump to solution

Did you try with Get-HVQueryResult with -EntityType SessionLocalSummaryView and then filter on sessionData.SesssionType -eq "Application"?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

slater0013
Contributor
Contributor
Jump to solution

Good Advice 🙂

SessionType           : DESKTOP
SessionProtocol       : BLAST
SessionState          : CONNECTED
StartTime             : 03/01/2022 09:38:54
DisconnectTime        : 
LastSessionDurationMS : 3694926
BrokeredRemotely      : False
ResourcedRemotely     : False
Unauthenticated       : False
IdleDuration          : 0

SessionType           : DESKTOP
SessionProtocol       : BLAST
SessionState          : CONNECTED
StartTime             : 03/01/2022 10:21:34
DisconnectTime        : 
LastSessionDurationMS : 1133797
BrokeredRemotely      : False
ResourcedRemotely     : False
Unauthenticated       : False
IdleDuration          : 0

SessionType           : APPLICATION
SessionProtocol       : BLAST
SessionState          : CONNECTED
StartTime             : 03/01/2022 08:26:13
DisconnectTime        : 
LastSessionDurationMS : 8057534
BrokeredRemotely      : False
ResourcedRemotely     : False
Unauthenticated       : False
IdleDuration          : 12

SessionType           : APPLICATION
SessionProtocol       : BLAST
SessionState          : CONNECTED
StartTime             : 03/01/2022 07:19:32
DisconnectTime        : 
LastSessionDurationMS : 12058882
BrokeredRemotely      : False
ResourcedRemotely     : False
Unauthenticated       : False
IdleDuration          : 105 

 

Didn't know about this Cmdlet !

Thank you !

GS.

Tags (1)
0 Kudos
nutshell09
Contributor
Contributor
Jump to solution

Spoiler
@slater0013How exactly did you get your listed results? trying hard (rookie) 🙂 thanks, CS
0 Kudos