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
Related commands
- Get-VMList Hyper-V VMs
- docker updateUpdate limits live
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