Retrieve VM Memory and CPU Hot Add information from PowerCLI

I was recently looking to return VMs where the ‘Enable memory hot add information for this virtual machine’ was not configured. For a single VM, you can view this information from selecting ‘Edit Settings > Options > Memory/CPU Hotplug’  as below:                     From PowerCLI you can retrieve … More Retrieve VM Memory and CPU Hot Add information from PowerCLI

Retrieve Template Information using PowerCLI

It is possible to retrieve template information using the Get-Template cmdlet to obtain a number of properties. In this example I will be looking to retrieve the following items and export to comma-separated values (CSV) file: Name vCPU Memory Number of Hard Disks Size of Hard Disks Firstly, we will connect to the VI Server … More Retrieve Template Information using PowerCLI

Using PowerCLI to manage multipath polices for SCSI devices

I was recently looking into multi path policies for all hosts in my clusters to firstly ensure that they were configured as expected. Firstly, I wanted to check if there were any SCSI devices that were not configured with the multipath policy of Round Robin using the Get-SCSILun cmdlet. Get-Cluster | Get-VMHost | Get-ScsiLun -LunType Disk | … More Using PowerCLI to manage multipath polices for SCSI devices

Invoking Storage vMotion from PowerCLI

It is possible to invoke Storage vMotion tasks using PowerCLI by invoking the Move-VM cmdlet and specifying the Datastore and DiskStorageFormat (to specify a new storage format) parameters, as below: Move-VM <VM> -Datastore <Datastore> -DiskStorageFormat <Thin | Thick | EagerZeroedThick> I was looking to use the below as part of testing a new storage array, where … More Invoking Storage vMotion from PowerCLI