Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 214147

Re: Set Memory Reservation & Limit For List Of VMs

$
0
0

If i may..

 

Your script looks good, and to push it a little you could do something like this

 

Get-Content C:\tmp\VMList.txt | Get-VM -Name  $_ | Get-VMResourceConfiguration | Set-VMResourceConfiguration -MemReservationMB 1024 -MemLimitMB 2048


The Foreach isnt needed because Get-Content send an array object to the pipeline (like foreach )




Viewing all articles
Browse latest Browse all 214147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>