Other‎ > ‎

Resources for Memory Upgrade

posted Jul 12, 2013, 11:24 AM by Kris Knight   [ updated Apr 3, 2015, 10:54 PM ]
Regarding the last post, I wrote a script to calculate the required additional resources.

$VMs = @("VM1","VM2","VM3")

$NewMem = 8192

ForEach ($VM in $VMs)
    {
        $gVM = Get-VM $VM
        $MemDiff = $NewMem - $gVM.MemoryMB
        $MemSum = $MemSum + $MemDiff
    }
   
$MemSum
Comments