Skip to main content

Run PowerCLI Command

Locally executes a user provided PowerCLI script in PowerShell.

Commands executed here will be performed using the VMware vSphere connection credentials.

note

If there's an error in a command in the middle of the script and the last command succeeds, the entire action will succeed, not revealing that some command may have failed.

Parameters

ParameterDescription
CodePowerCLI code to execute in PowerCLI.