We're testing a new patching method and it turns the servers off when done. Then we need to turn them back on in a specific order. I don't know what command will check to make sure ALL servers are offline before initiating the poweron command. I
Are these servers all in a specific folder or do you have a list in one format or another?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I can likely put them all in the same folder if that's necessary.
It would make it easier.
You could insert a While-loop like this for example
while((Get-Folder -Name MyFolder | Get-VM).PowerState -contains 'PoweredOn'){
sleep 5
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I think that should work, let me give it a go, thanks!