PowerCli One-liners for VMware.
This post covers some powercli "One Liners" which will help the VMware admin's to make the day smooth and simplify their day-to-day tasks on VMware. Here we go... Query the vmware tools on all virtual machines get-vm |% { get-view $_.id } | select Name, @{ Name=”Tools Status”; Expression={$_.guest.toolsstatus}}, @{ Name=”Tools Running Status”; E=$_.guest.toolsrunningstatus}} Query the nic type of all virtual machines Get-VM | Get-NetworkAdapter | Select-Object Parent,Type Query the disk type of all virtual machines get-vm | foreach-object -process {get-harddisk $_} | select-object storageformat | format-list Get VMs with Memory Reservations Get-VM | Get-VMResourceConfiguration | Where {$_.MemReservationMB -ne 0} | Select VM,MemReservationMBGet-VM | Get-VMResourceConfiguration | Where {$_.MemReservationMB -ne 0} | Select VM,MemReservationMB Get VMs with CPU Reservations: Get-VM | Get-VMResourceConfiguration | Where {$_.CpuReservationMhz -...