Next, open a new connection and select PowerCLI as the client:
Once connected, run some of your PowerCLI commands. The example below is from running “Set-KeyDelay.ps1” script from a while ago. Output from Onyx below:
// ——- ReconfigVM_Task ——-
var spec = new VcVirtualMachineConfigSpec();
spec.extraConfig = System.getModule(“com.vmware.onyx”).array(VcOptionValue, 1);
spec.extraConfig = new VcOptionValue();
spec.extraConfig.key = “keyboard.typematicMinDelay”;
spec.extraConfig.value = 2000000;
managedObject.reconfigVM_Task(spec); // VirtualMachine
4 thoughts on “Using PowerCLI, Onyx and Orchestrator”
Nice but you forgot to mention you need to install the Onyx package (needed to use the com.vmware.onyx actions). Alternatively you can replace the action by native code (this is what I did when using onyx).
I corrected the post to add a link to the Onyx download. Not sure re: the rest of what you’re talking about.
Downloading Onyx is not enough to make it work: you need to install the Onyx package in vCO.
If you do not install this package you can modify the code Onyx generates (in your example the second line).
Hello – the link to the vmwareadmins page “vCO to call PowerCLI scripts” is not working, is there a correct link please?
Comments are closed.