$VMlist=Get-VM | Where { $_.State –eq ‘Off’ } Foreach ($VM in $VMlist) { Write-Host $VM.VMName }
Your email address will not be published.
Comment *
Save my name, email, and website in this browser for the next time I comment.