I'm trying to find a way to identify unused VM's. We have a lot of contractors that come and go but the VDI stays assigned to the user and just sits unused. I need a powercli script to identify those machines. I tried to use vROPS but I didn't see a way to do it there either.
I found this post below but not having much luck with this script. It is just exporting blank files. I fixed a few syntax issues but still nothing. Any help would be much appreciated.
Why not identify those VMs in combination with Active Directory? I'd hope those contractors get their accound disabled (or even deleted), so you could just let a script browse through all VMs and check if the assigned user is still active in AD.