diff --git a/centreon/common/powershell/hyperv/2012/nodesnapshot.pm b/centreon/common/powershell/hyperv/2012/nodesnapshot.pm index 1df81686f..3f9b69c9d 100644 --- a/centreon/common/powershell/hyperv/2012/nodesnapshot.pm +++ b/centreon/common/powershell/hyperv/2012/nodesnapshot.pm @@ -39,9 +39,9 @@ Try { $ErrorActionPreference = "Stop" $vms = Get-VM if ($vms.Length -gt 0) { - $snapshots = $vms | Get-VMSnapshot + $snapshots = Get-VMSnapshot -VMName * } - + Foreach ($vm in $vms) { $i=0 $note = $vm.Notes -replace "\r",""