VMware: List Users who have a active Console Connection to a virtual machine


there are multiple active console connections and you want to know who are currently connected?

This cannot be shown directly, you have to go to the Tasks/Events tab of a virtual maschine, change to the Event View and look for an Event “Remote Console connected”.

vSphere console events
vSphere console events

Or use PowerCli to list all Remote console connections from a virtual machine

Get-VIEvent (Get-VM "YourVirtualMachine") | where-object {$_.FullFormattedMessage -eq "event.VmRemoteConsoleConnectedEvent.fullFormat"} | select-object CreatedTime,UserName

CreatedTime                                                       UserName
-----------                                                       --------
25.11.2014 12:14:39                                               VSPHERE\VMuser1
25.11.2014 12:14:23                                               VSPHERE\VMuser2
12.11.2014 11:26:28                                               VSPHERE\VMuser1
12.11.2014 11:26:25                                               VSPHERE\VMuser2


Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.