This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Editing a virtual machine file | |
# This PowerShell code takes an unregistered VMCX file | |
# It change the VM Name, disables Dynamic Memory, and sets the memory to 2GB | |
# It then saves the changed virtual machine configuration to a new path | |
# Parameters that will be changed | |
$VMConfigurationToEdit = "D:\VMs\Virtual Machines\3F99446F-1D9A-4010-8C8B-4E554E845181.vmcx" | |
$pathToSaveNewConfigTo = "D:\" | |
$newVMName= "NewVMName" |