Skip to content

Commit 931ec7a

Browse files
authored
Merge pull request PaoloFrigo#1 from gpunktschmitz/patch-1
fixed type '$couter'
2 parents 4fcc787 + 7b1418b commit 931ec7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Blog/PowerShell/Get-VMFootprintOnASingleHost.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ foreach ($VMHost in $ALL_HSD_VM_NODES){
2323
$counter += 1
2424
foreach ($VM in (get-vm -computername $VMHost)){
2525
$vm_counter += 1
26-
Write-Progress -Status "Get Footprint of $($VM.Name)" -Activity "Retrieve information from $($VmHost)" -PercentComplete $($couter/$NumNodes*100)
26+
Write-Progress -Status "Get Footprint of $($VM.Name)" -Activity "Retrieve information from $($VmHost)" -PercentComplete $($counter/$NumNodes*100)
2727
$VmSize = $(Get-VMFootprint($VM))
2828
Write-Verbose "$($VM.Name) - $VmSize GB"
2929
$total += $VmSize
3030
}
3131
}
3232

33-
Write-Output "$vm_counter VMs Footprint: $total GB "
33+
Write-Output "$vm_counter VMs Footprint: $total GB "

0 commit comments

Comments
 (0)