So I have a lab that I manage where we have had several scheduled power outages in the last few months. So it is my job to make sure that we power off the lab so none of our equipment have issues when we bring it back up.
I would estimate that our lab is comprised of about 90% VMware ESXi Hosts, and after going through the exercise of powering off the whole lab 1 or 2 times, it became it bit of a pain.
So I created a PowerShell Script using PowerCLI to not only power off all the Virtual Machine, but also the Virtual Hosts, and the VCSA appliance itself.
I have posted the script to my Github which you an check out here:
https://github.com/kenbshinn/Poweroff_VirtualEnvironment
Feel free to check it out and let me know what you think.
I hope you found this post helpful, and if so, please share it with your friends.
Covering topics of error messages, installation guides, and How To Articles for Windows Server and Workstations, VMWare, and Home Automation using Home Assistant.
Showing posts with label Script. Show all posts
Showing posts with label Script. Show all posts
Subscribe to:
Posts (Atom)
I have moved!!!
Please check out my new blog which now contains all my old posts and some new goodies as well. I can now be found at http://www.kenbshinn.c...
-
In a previous Post I mentioned an issue that I had with a Certificate template on my Internal Enterprise CA not showing up when I tried to r...
-
So I recently started working more with PowerCLI. After my time at VMWorld 2019 (which I will cover in another post) I realized how powerfu...
-
So I have been looking for ways to expand my knowledge with PowerCLI. This whole effort came about from going to VMWorld 2019 in San Francis...