Posted in
Virtual Machine Manager,
Windows Powershell |
No Comment | 2,230 views | 26/07/2013 11:59
You can get total CPU and memory usage of a user role with following command:
1
| (Get-VM | Where UserRole -like "MyUserRole" | Measure-Object -Property CPUCount,Memory -Sum) |
(Get-VM | Where UserRole -like "MyUserRole" | Measure-Object -Property CPUCount,Memory -Sum)
That will give you total count of cpu and memory.