Guru's,
When I run the following command, I am prompted if I want to power the VM down. I do not want to be prompted for power off since this is going to be scripted.
get-vmhost esx11 | get-vm | stop-vm
I get prompted to power off the vm.
Thanks
Add the -confirm option
get-vmhost esx11 | get-vm | stop-vm -confirm:$false
LucD,
Once again you helped me stumble thru this.
Thanks again.
Andrew