This commit is contained in:
Zack Meier
2026-04-15 15:42:41 -05:00
parent 74edcc4d9a
commit 03dba08135
146 changed files with 9119 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
$VMs = Get-VM | Where-Object { $_.ExtensionData.summary.config.ManagedBy.Type -ne "placeholderVm" }
$result = [System.Collections.ArrayList]@()
ForEach ($VM in $VMs) {
$Disks = $VM | Get-HardDisk
$TotalThreads = $Disks.count
$256GBDisks = ($Disks | where-object CapacityGB -gt 256)
$obj = [PSCustomObject]@{
'ComputerName' = $VM.Name;
'NumOfDisks' = $Disks.count
'NumOver256GB' = $256GBDisks.count
#'NumOf256GBThreads' = $TotalThreads
}
#Write-Output $obj
$null = $result.Add($obj)
}
$result