This commit is contained in:
garnier-quentin 2019-09-09 17:37:48 +02:00
parent a58e9f4432
commit 1516889da4
1 changed files with 2 additions and 2 deletions

View File

@ -39,9 +39,9 @@ Try {
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
$vms = Get-VM $vms = Get-VM
if ($vms.Length -gt 0) { if ($vms.Length -gt 0) {
$snapshots = $vms | Get-VMSnapshot $snapshots = Get-VMSnapshot -VMName *
} }
Foreach ($vm in $vms) { Foreach ($vm in $vms) {
$i=0 $i=0
$note = $vm.Notes -replace "\r","" $note = $vm.Notes -replace "\r",""