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

public EnableCopyAndPasteVMRC(objVcVirtualMachine: VcVirtualMachine): boolean {

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

    return blnReturn;
}
TypeScript

Public Function: DisableCopyAndPasteVMRC

public DisableCopyAndPasteVMRC(objVcVirtualMachine: VcVirtualMachine): boolean {

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

    return blnReturn;
}
TypeScript

Private Function: ToggleCopyAndPasteVMRC

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

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

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

    return blnReturn;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like