VMware Horizon Community
vmmedmed
Enthusiast
Enthusiast

Horizon 7 Administrator: How to view source IP of the sessions?

When I go to view sessions - I see user name, connection status, VDI desktop name. But I don't

see an option to display the IP address of the origin of the session. Is there some way to

get this data out of Horizon Administrator? Thank you.

7 Replies
RoderikdeBlock
Enthusiast
Enthusiast

In the HMTL5 infterface find your user:

pastedImage_0.png

In this screen the client hostname and IP are showed:

pastedImage_1.png

Roderik de Block


Blog: https://roderikdeblock.com
0 Kudos
RoderikdeBlock
Enthusiast
Enthusiast

You could also use PowerCLI to get this information:

First you have to connect to the connection server(s).

Connect-HVServer <your_hvserver>

Then your have to search for you user:

(Get-HVLocalSession).namesdata | ? {$_.username -like "domain.local\username"}

pastedImage_0.png

Roderik de Block


Blog: https://roderikdeblock.com
vmmedmed
Enthusiast
Enthusiast

i RDP'd to the View server and tried to run this in View PowerCLI but it didn't accept

(Get-HVLocalSession).namesdata | ? {$_.username -like "domain.local\username"}

The error was about not recognizing (Get-HVLocalSession) as a

cmdlet.

0 Kudos
sjesse
Leadership
Leadership

You don't do it from there with the latest versions, look at

Automating VMware Horizon 7 with VMware PowerCLI

you can install the commandlets there but you can also install them locally. The Get-HvLocalSession comes from

PowerCLI-Example-Scripts/Modules/VMware.Hv.Helper at master · vmware/PowerCLI-Example-Scripts · GitH...

Look at

https://www.retouw.nl/powercli/pulling-horizon-session-information-using-powercli/

For another reference, in general the site owner is one of the few people that actually write about the newer powercli capabilities

jonathanjabez
Hot Shot
Hot Shot

You can use Horizon HelpDesk Tool which is very handy. All you need to do is, search the VDI session using the userID and you will get the complete details about the endpoint client machine as well as the VDI machine details.

pastedImage_0.png

jonathanjabez
Hot Shot
Hot Shot

This fling tool can be downloaded from: Horizon Helpdesk Utility | VMware Flings

vmmedmed
Enthusiast
Enthusiast

This looks so promising. But in practice I seem to be unable to get the one detail I'm seeking. If I search the user and right click it

gives me the options you see below. But if I select Show Detail, nothing at all happens. Any thought as to what I might be missing?SessionDetails1.png

0 Kudos