some times when I use to check users session history, usualy I go through https://[your_vcenter_server]/mob?moid=SessionManager
I'm asking if there's a way to script this, I'm not sure if that is possible but I would like to find a smarter way to identify user connectivity to vcenters
Do you mean history or the current sessions (SessionList)?
For the history you can look at events, see for example Solved: Re: Get user logon/logoff history - VMware Technology Network VMTN
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you very much it's what I'm looking for except that I would like to find a way to get history for specific date.
for example let say I would like to only show for 2 days, like 10 & 11 of Marsh
if I use (Get-Date).AddDays(-14) I think it will take a long time to generate details, I'm right?
The Get-VIEvent cmdlet also has a Finish parameter.
You can ask for those 2 day by using Start and Finish
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference