This is a handy script I was playing with to shutdown my lab remotely. I hope you find some of the commands useful
Category: Automation
How To Increase VMware Datastore Using Powershell or Powercli – VirtuallyThatGuy
This is a quick blog post on how to increase VMFS datastore size using powercli. I recently installed workstation on my desktop to run nested vSAN for testing. I found out that using the native UI took a while so took the challenge to use cli instead. Script used below:
Script: How to Increase Multiple Virtual Machines VMs vCPU and vMem using a CSV and PowerCLI
This is an updated blog posted requested by one of the regular users of this blog. IMPORTANT NOTE – the script will recursively shutdown each VM defined in CSV (unless Hot Add is already enabled), apply the config then power each VM back on. So make sure you run this script in an outage window….
How To Rename Multiple ESXi Local Datastore With PowerCLI – VirtuallyThatGuy
This is a quick blog post to rename multiple datastore to Hostname-local using the residing cluster . Use case could be after auto deploy from stateless to stateful.
Migrate VMs from VSS to VDS, Change PSP for ESXi Host to RoundRobin, Change Default PSP and SATP – Using Powercli – VirtuallyThatGuy
VM disk space usage, Get-VM or VMhost LOGS, VM Snapshot Report to CSV – Using Powercli – Virtually That Guy
Cluster Inventory Report or CMDB Report for VMs, Cluster, Hosts, vCenter – Using PowerCLI – VirtuallyThatGuy
A quick blog post about gathering VM information for VMs running in your estate.
vMotion Fails with error the vm failed to resume on the destination during early power on Using Powercli – VirtuallyThatGuy
Welcome to VirtuallyThatGuy – this is a quick blog about CBT and snapshot errors when vmotion from one host to the other with this error “vmotion fails the vm failed to resume on the destination during early power on”. Resolution : This issue is only possible to fix via login to the specific host where the…
VMware Host Profile Compliance Checks Using Powercli – VirtuallyThatGuy
Welcome to VirtuallyThatGuy – today we are going to discuss how to quickly check host profile compliance and export the results to a CSV. You can use windows task scheduler to auto schedule this and even get the csv to be sent via an email. I’m sure most of you know how to schedule a…
Script: How to Create VMware Distributed Switch or Virtual Distributed Switch VDS Using Powercli – VirtuallyThatGuy
I often rebuild my lab and wanted to script something simple to recreate the VDS once I blast the lab. This is a very simple script I worked on to create my VDS environment and uplinks teaming. Hope you find this helpful. You can upgrade your VDS to version 6.5.0 then after. I chose version…