create a script that will detect if VM Machine is on

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 1 year ago.

  • Author
  • #30477
    Profile photo of michel vaillancourt
    michel vaillancourt

    I need to build a script that will connect to ESXI server and check if a spasfic VM Machine is on and if it is off then turn it on.


    Michel V

  • #30482
    Profile photo of Daniel Krebs
    Daniel Krebs

    You will need to install and use vSphere PowerCLI. Please search Google or Bing for examples. The scenario you have described is not difficult to script.

    Google search:
    powercli check if vm is powered on

You must be logged in to reply to this topic.