Excited about ESXi 6.7 like everyone else so I updated the lab to version 6.7 vCenter, SRM, ESXi, vROPS, vSphere replication and boom PRTG (my primary monitoring tool) wasn’t picking up any hardware monitoring. I had problem with the VMware ESXi service sfcbd-watchdog which wouldn’t start on my newly deployed ESX 6.7 servers and since…
Category: PowerCLI
How to gather vCenter Inventory, Number of VMs, ESXi Hosts and VCSA Node ID Using PowerCLI – VirtuallyThatGuy
I am the biggest fan of using CSV for automating my VMware estate but wanted to try the HTML flavour for a change. Join me explore the possibilities of collecting these results in an html readable format.
How to Add Descriptions or Notes To Multiple VMs Using PowerCLI and CSV VMware- VirtuallyThatGuy
I had over 100 VMs to add descriptions or notes and then Move them to a folder so decided to write a one-liner for it. Hope it comes handy for someone looking to do similar task.
How to find the number of VMs running on a Datastore Using PowerCLI – VirtuallyThatGuy
I wanted to check the heavy hitters on my Datastores and redistribute the load accordingly. I could use datastore cluster (you need enterprise plus license for this)…. Or alternantively vRealize Operation Manager… but thought why not use powercli? Below is what I came up with… In a larger environment (not my homelab) SDRS is your…
Automate VMtools Upgrade For Bulk VM List Using PowerCLI – VirtuallyThatGuy
This post is about upgrading multiple VMtools using powercli. I will start off with what is VMtools and why are they so important to be updated and looked after with love. Overview of VMware Tools (With my Comments) VMware Tools is a suite of utilities that enhances the performance of the virtual machines guest operating…
How to Set VM Hot Plug For Memory and CPU (vCPU and vMem Hot Plug) Using PowerCLI – VirtuallyThatGuy
Imagine one of your VMs struggling for compute resource and you want to add more resource without powering off the VM? Well VMware hot add and hot plug allows you to do just that. Hot-add vMem and hot-plug vCPU should allow you to easily add vMem and vCPU as necessary while your virtual machine is…
How to Open VM (Virtual Machine) Console Using PowerCLI – VirtuallyThatGuy
Welcome to VirtuallyThatGuy – and today we are going to be looking at how to open the VM console from the PowerCLI or PowerShell. I never really thought about using the open-vmconsolewindow cmdlet until a colleague asked the question during lunch break. I have used it in the past when the cmdlet was first introduced…
How to Expand VM Disk Using PowerCLI and Extend in Windows Guest – VirtuallyThatGuy
Imagine having to expand disk for more than 20 VMs and you sadly opt to do it the click next and next and next and click next way? Well you know where I am going with this. I must admit I use to do it this way until a colleague wowed me with a script…
How to Calculate pCPU to vCPU and pMem to vMem Ratio Using PowerCLI – VirtuallyThatGuy
In my time working for an Online betting company, I use to do a lot of capacity planning and cluster over commit analysis for our IT director. This sphered me on to try and automate the process…Thanks to the vmware powercli you can automate the process with below. So once again welcome to VirtuallyThatGuy – this…
How to Add Multiple ESXi Hosts to vCenter Using PowerCLI – Automation – VirtuallyThatGuy
Ever wondered how to add a bunch of ESXi Hosts to a newly or existing vCenter using powershell or automate with powercli? Well below script can help you achieve just that: