Introduction VMware vRealize™ Operations™, part of the VMware vRealize suite, provides a unified management experience for IT services on the VMware vCenter™ server. The Pure Storage FlashArray Management Pack for VMware vRealize Operations Manager (vROps) helps VMware administrators gain better insight into the health of the Storage arrays in a VMware context so that they…
Category: VMware
Migrate VMs Between vCentres Using Powershell or PowerCLI
Yeah you can do this in the UI but I don’t like clicking so will use a script instead. The following script will migrate virtual machines from one vCentre to another, so long as both have a shared datastore.
Set VM Tools to Update Automatically on VM Reboot using powershell
Keeping VM Tools up to date is like painting the Forth Bridge (an endless task which, just as you finish, another ESX release goes live and you start all over again). A useful, but almost hidden feature, is that which allows VM’s to automatically update when they’re being bounced. Meaning that some VM’s will be…
VMware ESXi CLI Cheat Sheet
These cheat sheets are to be used on the VMware platform. Some commands require PowerCLI, others can be run directly on the Photon OS. Command What it does /etc/init.d/hostd restart/etc/init.d/vpxa restart Restart VMWare Management services on Host # Check if your VM has (Change Block Tracking) enabled or not(Get-VM -Name Server_Name).ExtensionData.Config.ChangeTrackingEnabled(Get-VM-Name Server_Name).ExtensionData.Config.ChangeTrackingEnabled# Find VMs where CBT (Change Block…
Ping All VM’s On ESXi Using Powershell
This is a quick blog about some useful sanity check prior to and after network level changes
Comprehensive Script of VM’s with Snapshots Running – Using PowerShell or Powercli – VirtuallyThatGuy
This script generates an email report of virtual machines that have snapshots running. save above and run as below .\getsnapshotsize.ps1
PowerShell or PowerCLI starter pack – OneLiners Must Have For Administrator
A quick blog on some one liners managing the vmware estate an admin must have. The following are a few PowerCLI commands that I have found useful at one time or another. The VMware Communities section for PowerCLI is a great starting point for more information on setting up and using PowerCLI
How To Reboot Cycle ESXi Server to remove stale datastore entry using powershell or powercli – VirtuallyThatGuy
This is a quick script to remove stale datastore entry on a host using a reboot cycle script which puts a host into maintenance mode, reboot, remove from maintenance mode and loop through the remaining hosts of the cluster. This is useful for weekend patches or any other maintenance work. Once completed the stale entry…
Script: Reboot Horizon View VMs with Active connection using PowerCLI
This is a quick script to reboot horizon view VMs (VDI) with active users connected or Horizon desktops that have active session. This is useful for weekend patches or any other maintenance work.
Script: How to Hot Add Memory and CPU (vMem & vCPU vCenter / ESXi Hosts)
This is a quick blog post on how to add vMem and vCPU hot plug in vCenter or ESXi host via powerCLI