You would first need to "get" the VM ebfore chekcing the powerstate, and then power on the ones that aren't.
Something like this
Get-VM*DC0*|Where-Object {$_.powerstate -eq‘PoweredOff’} |Start-VM|Wait-Tools
You would first need to "get" the VM ebfore chekcing the powerstate, and then power on the ones that aren't.
Something like this
Get-VM*DC0*|Where-Object {$_.powerstate -eq‘PoweredOff’} |Start-VM|Wait-Tools