VMware Cloud Community
xacolabril
Expert
Expert
Jump to solution

Is it possible to Power-Off a VM?

Hello, I'm wondering if is it possible to Power-Off (not shutdown) a Virtual Machine with PowerCLI. I know Shutdown-VMGuest cmdlet but not a similar "Poweroff-VMGuest"...

During weekly VM's reboot, we can see some test virtual machines in left hanging mode (some Windows VM with gray screen without mouse pointer, etc...). Then I need to Power-off and Power-on these VMs because Shutdown guest is not operative. Is it possible to make these Power-off with PowerCLtI?


Thank you in advance.

Best regards.

Xavier Colomé Abril. VMware Certified Professional VCP3, VCP4 and VCP5. [Si encuentras que esta o cualquier otra respuesta ha sido de utilidad, vótalas. Gracias.] [If you find this or any other information helpful or correct, please consider awarding points. Thank you.]
0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You can use the Stop-VM cmdlet to power off a VM. If necessary you can even add the -Kill parameter to stop the specified virtual machines by terminating their processes running on the ESX.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

View solution in original post

0 Kudos
1 Reply
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You can use the Stop-VM cmdlet to power off a VM. If necessary you can even add the -Kill parameter to stop the specified virtual machines by terminating their processes running on the ESX.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos