Function: vCenter Virtual Machine Enable or Disable Copy And Paste VMRC Toggle

by Simon Sparks · 5 January 2026

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

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

Filename: PluginVCVirtualMachineService.ts

Public Function: EnableCopyAndPasteVMRC

publicEnableCopyAndPasteVMRC(objVcVirtualMachine:VcVirtualMachine):boolean{

letblnReturn:boolean=this.ToggleCopyAndPasteVMRC(objVcVirtualMachine,"FALSE");

returnblnReturn;
}
TypeScript

Public Function: DisableCopyAndPasteVMRC

publicDisableCopyAndPasteVMRC(objVcVirtualMachine:VcVirtualMachine):boolean{

letblnReturn:boolean=this.ToggleCopyAndPasteVMRC(objVcVirtualMachine,"TRUE");

returnblnReturn;
}
TypeScript

Private Function: ToggleCopyAndPasteVMRC

privateToggleCopyAndPasteVMRC(objVcVirtualMachine:VcVirtualMachine,strValue:"TRUE"|"FALSE"):boolean{

letobjProperties:Properties=newProperties();
objProperties.put("isolation.tools.copy.disable",strValue);
objProperties.put("isolation.tools.paste.disable",strValue);
objProperties.put("isolation.tools.dnd.disable",strValue)

letblnReturn:boolean=this.ReconfigureAdvancedParameters(objVcVirtualMachine,objProperties);

returnblnReturn;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like