This article describes the procedure by which you can provide Service Portal users the ability to update the VM Hardware version for VMware VMs with a single click. To do this, a Command Workflow is configured using a script.


Creating the Command Workflows

This solution requires that the script to update the VM hardware version be available on the vCommander server, where they will be called by the workflow.

  1. Download the Update HW Version script package to the vCommander application server.
  2. Extract the scripts to
  3. Edit the script to provide the location of your encrypted credentials file

Next, create a completion workflow which uses the file in a script step.

  1. Browse to Configuration > Command Workflows.
  2. Click Add.
  3. Provide the Name Update VMware Tools and choose a suitable icon. Click Next.
  4. Click Add and choose Execute Script.
  5. Edit the step as follows:
    • Step Name: Update VMware Tools
    • Step Execution: Always Execute
    • Timeout: 300
    • Script Output: Capture script output as comment
    • When Step Fails: Mark workflow step as failed: do not proceed
    • Command Line
      Powershell.exe c:\scripts\commands\UpdateHwVer.ps1 #{target.deployedName} #{}


  6. Click Next.
  7. On the Permissions page, either select Allow everyone to access this workflow or Allow these specific users/groups to access this workflow and choose the appropriate users, groups, and/or organizations.
  8. Check Display in Service Portal and Prompt for confirmation (adding an optional message). Click Next.
  9. Click Finish.