VMware Cloud Community
tushar115
Contributor
Contributor

Auto shutdown of ESxi 5.0 HOST

i want to create a windows batch file to shutdown the esxi 5.0 host without entering in to the maintenance mode how can i do that?

0 Kudos
1 Reply
RyanH84
Expert
Expert

Hi,

I would create a powershell script to shutdown the host, rather than a batch file. Install the VMware PowerCLI onto a Windows server and connect to your host/vCenter. If you want a batch file, I guess you could create the powershell script and then execute it from a batch file?  I don;t know why you'd want that though!


Then you can use the VMware Documentation center and find out the commands to shutdown your server. You will use the stop-VMHost cmdlet in doing this.

------------------------------------------------------------------------------------------------------------------------------------------------- Regards, Ryan vExpert, VCP5, VCAP5-DCA, MCITP, VCE-CIAE, NPP4 @vRyanH http://vRyan.co.uk
0 Kudos