VMware Horizon Community
galibai
Contributor
Contributor

When was the last time user logged in

Hi, is there a way to find out when was the last time a user logged in his VDI VM?

We have VMs where in users have not logged in for a long time, and we want to delete them. but before we do that, we want to have some actual data to prove it.

My environment is 4.6

Thanks

0 Kudos
5 Replies
mittim12
Immortal
Immortal

If you have an event database you can go back and review that for logs of the View environment.  

0 Kudos
galibai
Contributor
Contributor

But going through logs and checking it against 150 VMs, is going ot be a big pain.

0 Kudos
mittim12
Immortal
Immortal

The events database is stored in SQL so maybe there is an opportunity to use a SQL query to return only the information you need.

0 Kudos
galibai
Contributor
Contributor

Do you know about any such queries that can help? 

0 Kudos
mittim12
Immortal
Immortal

I don't have any in front of me but if I remember correctly the integrationg guide had some examples.

http://www.vmware.com/support/pubs/view_pubs.html

0 Kudos