- or download this
use strict;
use warnings;
...
foreach my $vm (in $VirtualServer->VirtualMachines) {
print " Name: " . valof $vm->Name . " State: " . valof $vm->Sta
+te . "\n";
}
- or download this
Win32::OLE(0.1403) error 0x80070542: "Either a required impersonation
+level
was not provided, or the provided impersonation level is invalid"
...
in METHOD/PROPERTYGET "VirtualMachines" at d:\Scripts\BackupVM.pl
+line 16
Can't call method "Name" on an undefined value at d:\Scripts\BackupVM.
+pl line 18
.
- or download this
Option Explicit
On Error Resume Next
...
wscript.echo I & " machines are RUNNING: "
Redim preserve vmachine(I)
Dim vm, fso, MyFile