fix hyperv node-snapshot
This commit is contained in:
parent
d6ec44edfd
commit
a58e9f4432
|
@ -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 = Get-VMSnapshot -VMName *
|
$snapshots = $vms | Get-VMSnapshot
|
||||||
}
|
}
|
||||||
|
|
||||||
Foreach ($vm in $vms) {
|
Foreach ($vm in $vms) {
|
||||||
$i=0
|
$i=0
|
||||||
$note = $vm.Notes -replace "\r",""
|
$note = $vm.Notes -replace "\r",""
|
||||||
|
@ -89,4 +89,4 @@ __END__
|
||||||
|
|
||||||
Method to get hyper-v informations.
|
Method to get hyper-v informations.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
Loading…
Reference in New Issue