Retrieve collection of Microsoft Windows Server 2003 VMs using PowerCLI

As the extended support end date looms nearer for Windows Server 2003 R2  or to be more precise 14/07/2015 (http://support.microsoft.com/lifecycle/search/default.aspx?alpha=Windows+Server+2003+R2) a number of you may still be running editions of this operating system. An easy way to discover this using PowerCLI is to use the Get-VM cmdlet and filter the results where the ‘Guest.OSFullName’ property is … More Retrieve collection of Microsoft Windows Server 2003 VMs using PowerCLI

Retrieving VM CDDrive information using PowerCLI

I was recently looking at retrieving a number of VMs where the CD Drive was connected to a Datastore ISO file.  This is possible be using the Get-CDDrive cmdlet to retrieve the device type information. To retreive information for a single VM we can use the following: Get-VM VM1 | Get-CDDrive The below information will be … More Retrieving VM CDDrive information using PowerCLI

Calculate vCPU to pCPU ratio for Hosts using PowerCLI

In some capacity planning scenarios, statistical information is not taken into account and the management of resources through best efforts can become a  rule of thumb scenario. In the case, of CPU resource the concept of vCPU to CPU ratio has been discussed as a possible method. Using PowerCLI I was able to produce the ratio … More Calculate vCPU to pCPU ratio for Hosts using PowerCLI

Generate system uptime report of VMs using PowerCLI

It is possible to return the system uptime of your VMs by retrieving the last statistical information for the metric ‘sys.uptime.latest’ in realtime using PowerCLI. For Example, to return the metric for the virtual machine ‘VM1’ we could run the following command: Get-Stat -Entity VM1 -Stat sys.uptime.latest -Realtime -MaxSamples 1 This will return the uptime … More Generate system uptime report of VMs using PowerCLI