JAEN

Virtualization

Set-VM / Set-VMMemory

CautionResize VM resources

Set-VMMemory <vm> -StartupBytes 8GB

Adjusts memory and vCPUs. Dynamic memory can change live; fixed memory and vCPU counts usually need a stop.

Examples

  • Set-VMProcessor web01 -Count 4Set 4 vCPUs

Syntax

Set-VMMemory <vm> -StartupBytes N / Set-VMProcessor <vm> -Count N

Before you run it

Shrinking resources can destabilize guests.

Used when you see

VM running slow
4
Resize VM resources if warranted
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store