Hi everyone.
All my subordinates are permanently working remotely so my job is to procure a PowerShell script that could approximately pinpoint the activity of their VMs.
I am filtering the FullFortmattedMessage to only show these events:
Personally, I don't think looking at the outside of a VM, what vSphere does, wil not give you sufficient information to determine if a VM is "in use".
My preferred approach is to use a Guest OS native command to show activity inside a Guest OS.
These commands of course differ by type of Guest OS.
But when the VMware Tools are installed on your VMs, you can use the Invoke-VMScript cmdlet to launch these commands.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hello! Thank you for the response.
Do you have an example for Windows os?
Each environment is different, so I don't think any of my scripts would help for your environment.
But all the scripts for Windows OS are build around the Get-Process and the Get-Counter cmdlet.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Well I actually can't really utilize the Guest OS commands because everyone has a vm with custom passwords so I can't access them.
Don't you have an admin or service account to manage your OS?
If not, then it will be hard to determine what goes on inside the Guest OS.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference