Hello
I am trying to build a script that helps me to list unused virtual machines.
All of the virtual machines are either Windows XP or Windows 7
I would like to run this on cluster called VDI_ALU and I would like to get the vm whic hdid not have any activity in the last 4 weeks.
If you have any other approach I am open for a discussion.
Any help would be appreciated.
Thanks
Onsik
What exactly do you mean with "activity" ?
Is that poweron/power off/reset of the VM ?
Or is that a user logging on to the OS running in the VM ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
HI LucD
I would prefer to have this done on user logging on to the OS.
Thanks
Onsik
That would mean you have to interpolate the guest OS to retreive that info.
That is not kept in vSphere.
If your guest OS is a Windows-based OS, you could use the Get-EventLog cmdlet to check the Security eventlog.
It does require that you audit successful logons.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
