Powershell script to list VMs greater than 4 GB RAM


These are just basic powershell scripts. You can use your own logic to enhance this.

#To list VMs greater than 'n' RAM

cls

#Connect to Vcenter


Connect-VIServer -Server 172.28.xx.xx 

#resourcepool = Resource Pool name, n= RAM in MB

get-vm -location resourcepool | where{$_.memorymb -gt 'n'}

Comments

Popular posts from this blog

VMware and Windows Interview Questions: Part 2

VMware and Windows Interview Questions: Part 3

VMware vMotion error at 14%