Batch file arguments count
Playing around today with a batch file and needed to work out the total number of arguments that have been passed. [bat] SET /A ArgCount=0 for %%a in (%*) do […]
Playing around today with a batch file and needed to work out the total number of arguments that have been passed. [bat] SET /A ArgCount=0 for %%a in (%*) do […]
How many disks (vmdks) and what is the total configured size of these Virtual Machines (VMs)? Currently moving a large number of VMs across datastores using vSphere’s Storage VMotion, now […]
The following script gets all the VMs that have connected CD ROM drives and in addition it also picks up VMs that may not have CDs in a connected or […]
This is an old post that I never really finished and now it seems a little pointless since everything is moving to ESXi however we still have 3.0 and 3.5 […]
Having set up a development lab environment for a project team they began having issues related to storage due to not seemingly understanding that if you put too many Virtual […]
Had an unusual question today from a user, who questioned why his VM became suspended. After a quick internal thought, because you probably clicked suspend, he advised that it occurred […]
Here is an interesting comparison between scripting languages. I was playing with getting the time 1 minute into the future in order to set up a scheduled command. So I […]
Whilst attempting to add help information to one of my functions this morning, using the new V2 features which allows you to add multi line information, in the same format […]
This script adds a vmxnet3 nic to a VM to be on the same virtual Port Proup (vPG) as the first NIC attached to the VM. This came about because […]
As part of an automated deployment of VMs I needed the ability to add a NIC that is attached to VMware vDS and attach it to a particular port group. […]