Tag Archive: powercli

Script to find all virtual machines with ballooning memory

This script will list all virtual machines with ballooning memory: $findball = @() foreach($vm in (Get-View -ViewType VirtualMachine | Where-Object ` {$_.Summary.QuickStats.BalloonedMemory -ne “0”})){ $select = “” | Select-Object VM, ` BalloonedMemory $select.VM = $vm.Name $select.BalloonedMemory = $vm.Summary.QuickStats.BalloonedMemory $findball += $select…
Read more

Script to find all virtual machines with swapping memory

This script will list all virtual machines with swapping memory: $findswap = @() foreach($vm in (Get-View -ViewType VirtualMachine | Where-Object ` {$_.Summary.QuickStats.SwappedMemory -ne “0”})){ $select = “” | Select-Object VM, ` SwappedMemory $select.VM = $vm.Name $select.SwappedMemory = $vm.Summary.QuickStats.SwappedMemory $findswap +=…
Read more

How to – create a local user/assign permissions on an ESXi host

Sometimes (but hopefully not very often…) you have to create a local user on your ESXi host. This how-to will show you the necessary steps using the vSphere Client as well as PowerCLI. Part 1: Using your vSphere Client: Step…
Read more