mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
fix hyperv node-snapshot
This commit is contained in:
parent
d6ec44edfd
commit
a58e9f4432
@ -39,7 +39,7 @@ Try {
|
||||
$ErrorActionPreference = "Stop"
|
||||
$vms = Get-VM
|
||||
if ($vms.Length -gt 0) {
|
||||
$snapshots = Get-VMSnapshot -VMName *
|
||||
$snapshots = $vms | Get-VMSnapshot
|
||||
}
|
||||
|
||||
Foreach ($vm in $vms) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user