Script for Last Logon of Windows 7 VM?

  • 29 July 2019
  • 2 replies

Hi, I'm relatively new to Nutanix, so I'm still learning the concepts and terms. But I was wondering if it was possible to develop a Powershell script, for the purpose of getting the last logon of Windows 7 workstations running as VM's in our environment.

The script would run from a central location on our network, so it would have to access AHV and then somehow be able to grab the last logon time in the guest OS by the user who "owns" the workstation. We determine who owns the virtual workstation, by determining the sole user listed in the Remote Desktop group.

We can do this, in VMWware for Windows 10 workstations; but I've been told that it's a little more tricky to develop such a script for Windows 7 running on Nutanix.

Any help or guidance would be greatly appreciated, so that I could get a starting point. Thanks.

This topic has been closed for comments

2 replies

Userlevel 2
Badge +2

So you want a script that enumerates the Last Logon on all VM's on your Nutanix Cluster; or the last logon time of each VM by enumerating the only user in the Remote Desktop Group and grabbing their last logon details. Is that correct.

Kind Regards
Userlevel 7
Badge +34
Did you see the reply from @andymlloyd ?