Well, the concept of a user being logged on is specific to the operating system of the Guest OSs in each VM. VI does not have any visibility into that type of data. Or do you mean to look at who has the VI console open for a VM?
[PowerShell MVP|https://mvp.support.microsoft.com/profile=5547F213-A069-45F8-B5D1-17E5BD3F362F], VI Toolkit forum moderator
Author of the upcoming book: Managing VMware Infrastructure with PowerShell
Co-Host, PowerScripting Podcast (http://powerscripting.net)
Need general, non-VMware-related PowerShell Help? Try the forums at PowerShellCommunity.org