This is one of the cmdlet that is a little confusing, as the help does not provide exact information. The cmdlet will not take a VM name or vmx file path as input. So how to make changes to the resources for a particular VM?

Get-VM | Where-Object {$_.Name -like “Win7”} | Get-VMResourceConfiguration | Set-VMResourceConfiguration -CpuReservationMhz 25

First Get the VMResourceConfiguration and pass it to the set cmdlet. Here Win7 could be replaced with VM name of your choice. CpuReservationMhz and its value can be replaced with any other resource setting (get-help to find the list).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s