Modifying the settings of virtual machines
To modify the settings of a virtual machine, you can use the Set-VM
cmdlet. This cmdlet has the following syntax. The first parameter set is the default:
Set-VM [-VM] <VirtualMachine[]> [-Name <String>] [-Version <VMVersion>]
[-MemoryMB <Int64>] [-MemoryGB <Decimal>] [-NumCpu <Int32>]
[-CoresPerSocket <Int32>] [-GuestId <String>] [-AlternateGuestName
<String>] [-OSCustomizationSpec <OSCustomizationSpec>]
[-HARestartPriority <HARestartPriority>] [-HAIsolationResponse
<HAIsolationResponse>] [-DrsAutomationLevel <DrsAutomationLevel>]
[-Server <VIServer[]>] [-RunAsync] [-VMSwapFilePolicy
<VMSwapfilePolicy>] [-Notes <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
The second parameter set is for reverting a virtual machine to a snapshot:
Set-VM [-VM] <VirtualMachine...