Skip to content

Commit 7b1418b

Browse files
fixed type '$couter'
replaced '$couter' with '$counter'
1 parent a3bd577 commit 7b1418b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Blog/PowerShell/Get-VMFootprintOnASingleHost.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ function Get-VMFootprint ($VM){
1515
Return [math]::round($total_size/1GB,2)
1616
}
1717

18-
$couter = 0
18+
$counter = 0
1919
$vm_counter = 0
2020
$total = 0
2121

2222
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)