Although the script could be optimised, it returns results, and they are written to the file.
Are you sure there VMs that fit the 2 conditions (powered on and running a Windows guest OS) ?
Is there anything in the $allvms array ?
Although the script could be optimised, it returns results, and they are written to the file.
Are you sure there VMs that fit the 2 conditions (powered on and running a Windows guest OS) ?
Is there anything in the $allvms array ?