Adjusting Console OS RAM via Powershell

You know after Andrew does all the hard work in perl… Converting this stuff to powershell is like shooting fish in a barrel.

Get the current COS Ram configuration:

(Get-View (get-view -VIObject (get-vmhost ESX1)).ConfigManager.MemoryManager).ConsoleReservationInfo

Change the ammount of RAM dedicated to the COS to 512MB:

(Get-View (get-view -VIObject (get-vmhost ESX1)).ConfigManager.MemoryManager).ReconfigureServiceConsoleReservation(512mb)

~Glenn