# Ansible module for VM workstation to PowerOn & PowerOff

**URL:** <https://forum.ansible.com/t/ansible-module-for-vm-workstation-to-poweron-poweroff/36898>\
**Category:** Ansible Project\
**Tags:** windows, vmware, ubuntu\
**Created:** [July 25, 2022, 11:59am UTC](https://forum.ansible.com/t/ansible-module-for-vm-workstation-to-poweron-poweroff/36898 "2022-07-25T11:59:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohan](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Mohan](https://forum.ansible.com/u/Mohan)\
**Post date:** [July 25, 2022, 11:59am UTC](https://forum.ansible.com/t/ansible-module-for-vm-workstation-to-poweron-poweroff/36898/1 "2022-07-25T11:59:55Z")

</div>

Hello Community members,

I’m using vmware workstation version 15.0.0 on Ubuntu-20.04-LTS machine.

We have deployed VM workstation based Windows-10 machines in that. I want to know which ansible module we can use to **PowerOn** and **PowerOff** windows-10 virtual machines from workstation?

I was searching online to find ansible module for the same, However i couldn’t find the ideal document. So please let me know module in ansible?

---

<div class="post-metadata">

**Author:** ![Will\_McDonald](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Will\_McDonald](https://forum.ansible.com/u/Will_McDonald)\
**Post date:** [July 25, 2022, 12:10pm UTC](https://forum.ansible.com/t/ansible-module-for-vm-workstation-to-poweron-poweroff/36898/2 "2022-07-25T12:10:29Z")

</div>

[https://github.com/qsypoq/Ansible-VMware-Workstation-Fusion-Pro-Modules](https://github.com/qsypoq/Ansible-VMware-Workstation-Fusion-Pro-Modules) looks like it wraps vmrest.exe which would allow you to control the power state of VMs.

You could also, more crudely, just stop/start using vmrun.exe [stop|suspend|start] \<path to .vmx\> and wrap that with command/shell/win\_powershell.

---

<div class="post-metadata">

**Author:** ![Mohan](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Mohan](https://forum.ansible.com/u/Mohan)\
**Post date:** [July 25, 2022, 12:28pm UTC](https://forum.ansible.com/t/ansible-module-for-vm-workstation-to-poweron-poweroff/36898/3 "2022-07-25T12:28:28Z")

</div>

Okay. Thank you very much. I’ll check it out.
