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;
}TypeScriptPublic Function: DisableCopyAndPasteVMRC
public DisableCopyAndPasteVMRC(objVcVirtualMachine: VcVirtualMachine): boolean {
let blnReturn: boolean = this.ToggleCopyAndPasteVMRC(objVcVirtualMachine, "TRUE");
return blnReturn;
}TypeScriptPrivate 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;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
