diff --git a/centreon/common/powershell/hyperv/2012/nodeintegrationservice.pm b/centreon/common/powershell/hyperv/2012/nodeintegrationservice.pm index cc9686751..5f2452567 100644 --- a/centreon/common/powershell/hyperv/2012/nodeintegrationservice.pm +++ b/centreon/common/powershell/hyperv/2012/nodeintegrationservice.pm @@ -43,7 +43,7 @@ Try { Foreach ($vm in $vms) { $i = 0 Foreach ($service in $services) { - if ($services.VMName -eq $vm.VMName) { + if ($service.VMName -eq $vm.VMName) { if ($i -eq 0) { Write-Host "[name=" $vm.VMName "][state=" $vm.State "]" }