search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Powershell | 2 Comments | 3,774 views | 31/03/2014 16:45

You can use following script to get VM CPU Counts on SCVMM 2012 R2:

1
2
3
4
5
6
7
8
9
PS C:\Users\yusufozt\Desktop> $Results = Get-VM | Measure-Object -Property CPUCount -Sum
PS C:\Users\yusufozt\Desktop> $Results
 
Count    : 108
Average  :
Sum      : 292
Maximum  :
Minimum  :
Property : CPUCount

You can get total count by using $Results.Sum value.