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.
https://communities.vmware.com/docs/DOC-36759#comment-43440