PowerShell Logo Small

Set-VMMemory



This is the built-in help made by Microsoft for the command 'Set-VMMemory', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Configures the memory of a virtual machine.

SYNTAX


Set-VMMemory [-VMName] <String[]> [-Buffer <Int32>] [-ComputerName <String[]>] [-DynamicMemoryEnabled <Boolean>] [-MaximumAmountPerNumaNodeBytes <Int64>] [-MaximumBytes
<Int64>] [-MinimumBytes <Int64>] [-Passthru] [-Priority <Int32>] [-ResourcePoolName <String>] [-StartupBytes <Int64>] [<CommonParameters>]
Set-VMMemory [-VM] <VirtualMachine[]> [-Buffer <Int32>] [-DynamicMemoryEnabled <Boolean>] [-MaximumAmountPerNumaNodeBytes <Int64>] [-MaximumBytes <Int64>] [-MinimumBytes
<Int64>] [-Passthru] [-Priority <Int32>] [-ResourcePoolName <String>] [-StartupBytes <Int64>] [<CommonParameters>]
Set-VMMemory [-VMMemory] <VMMemory[]> [-Buffer <Int32>] [-DynamicMemoryEnabled <Boolean>] [-MaximumAmountPerNumaNodeBytes <Int64>] [-MaximumBytes <Int64>] [-MinimumBytes
<Int64>] [-Passthru] [-Priority <Int32>] [-ResourcePoolName <String>] [-StartupBytes <Int64>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-VMMemory cmdlet configures the memory of a virtual machine.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306946

REMARKS

<

Examples


Example 1

PS C:\>Set-VMMemory TestVM -DynamicMemoryEnabled $true -MinimumBytes 64MB -StartupBytes 256MB -MaximumBytes 2GB -Priority 80 -Buffer 25



Enables dynamic memory on virtual machine TestVM, sets its minimum, startup, and maximum memory, its memory priority, and its buffer.