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.
Subscribe to:
Post Comments (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...
-
To start, let me apologize for not taking screen shots to share this issue. If this issue occurs in the future I will be sure to take them t...
-
I have been away for a while, but in my absence I have been playing with a Home Automation System called Home Assistant. You can find out mo...
-
The other day I was tasked with deploying a Infoblox OVA in our Lab environment. I was under the impression that this was going to be a simp...
No comments:
Post a Comment