Quantcast
Viewing all articles
Browse latest Browse all 230302

Re: Set Memory Reservation & Limit For List Of VMs

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 Image may be NSFW.
Clik here to view.
)




Viewing all articles
Browse latest Browse all 230302

Trending Articles



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