create a script that will detect if VM Machine is on

Welcome Forums General PowerShell Q&A create a script that will detect if VM Machine is on

This topic contains 1 reply, has 2 voices, and was last updated by

 
Moderator
3 years, 3 months ago.

  • Author
    Posts
  • #30477

    Participant
    Points: 0
    Rank: Member

    Hi,
    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.

    Regards,

    Michel V

  • #30482

    Moderator
    Points: 24
    Team Member
    Rank: Member

    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

The topic ‘create a script that will detect if VM Machine is on’ is closed to new replies.