VMware ESX

VMware PowerCLI script to set the Memory Resources limit on your VMs to Unlimited in bulk

on

Had a situation where I needed to reset every VM in one environment to Unlimited that had previously had a an explicitly set memory limit. Here is a nice VMware PowerCLI script that will reconfigure all the affected VMs one by one automatically for you:

get-vm|get-vmresourceconfiguration|where-object{$_.memlimitmb -ne '-1'}|set-vmresourceconfiguration -memlimitmb $null

About Jason Samuel

Jason Samuel lives in Houston, TX with a primary focus on strategic advisory and architecture of end-user computing, security, enterprise mobility, virtualization, and cloud technologies from Citrix, Microsoft, & VMware. He also has an extensive background in web architecture and networking over his 20+ year career in IT. He is an Author, Speaker, and Local User Group Community Leader. He is certified in several technologies and is 1 of 63 people globally that is a recipient of the prestigious Citrix Technology Professional (CTP) award. He is 1 of 42 people in the world that has been awarded as a VMware EUC Champion and VMware vExpert. He is a featured author on DABCC which provides the latest IT Community News on Cloud, Data Center, Desktop, Mobility, Security, Storage, & Virtualization. In his spare time Jason enjoys writing how-to articles and evangelizing the technologies he works with. Disclaimer: The content and opinions expressed in articles and posts are his own and are by no means associated with his employer.

Recommended for you

Leave a Reply

Your email address will not be published.