I get a parsing error on line 5. Right after the -and. It looks like it needs a value?
$vms = get-vm | where {$_.PowerState -eq "PoweredOn" -and ` $_.Guest.OSFullName -match "Microsoft Windows*" } | Sort Name
I get a parsing error on line 5. Right after the -and. It looks like it needs a value?
$vms = get-vm | where {$_.PowerState -eq "PoweredOn" -and ` $_.Guest.OSFullName -match "Microsoft Windows*" } | Sort Name