Orchestrator Function: vCenter Virtual Machine Enable Copy And Paste VMRC

by Simon Sparks · 5 January 2026

To use this function add it to the class library file named vCenterServerService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: vCenterServerService.ts

publicVcVirtualMachineEnableCopyAndPasteVMRC(objVcVirtualMachine:VcVirtualMachine):void{

this.objLogger.info(`enableCopyAndPasteVMRC on${objVcVirtualMachine.name}.`);

letobjVcVirtualMachineConfigInfo:VcVirtualMachineConfigInfo=objVcVirtualMachine.config;

objVcVirtualMachineConfigInfo.cpuHotAddEnabled=false;
objVcVirtualMachineConfigInfo.memoryHotAddEnabled=false;

letobjVcOptionValueCopyDisable:VcOptionValue=newVcOptionValue("isolation.tools.copy.disable","FALSE");
letobjVcOptionValuePasteDisable:VcOptionValue=newVcOptionValue("isolation.tools.paste.disable","FALSE");
letobjVcOptionValueSetGUIOptions:VcOptionValue=newVcOptionValue("isolation.tools.setGUIOptions.enable","TRUE");

letarrVcOptionValue:VcOptionValue[]= [];
arrVcOptionValue.push(objVcOptionValueCopyDisable);
arrVcOptionValue.push(objVcOptionValuePasteDisable);
arrVcOptionValue.push(objVcOptionValueSetGUIOptions);

this.VcVirtualMachineReconfigureExtraConfig(objVcVirtualMachine,arrVcOptionValue);
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like