This article describes the procedure by which you can provide Service Portal users the ability to mount, unmount or upgrade VMware Tools with a single click. To do this, a Command Workflow is configured using a script.


Creating the Service Workflows

This solution requires that the scripts to mount, unmount, or upgrade VMware tools be available on the vCommander server, where they will be called by the workflow.

  1. Download the Mount/Unmount/Update scripts package to the vCommander application server.
  2. Extract the three scripts to
  3. Edit the script to provide the location of your encrypted credentials file.

Next, create a command workflow which uses these files in a script step.
  1. Browse to Configuration > Command Workflows.
  2. Click Add.
  3. Provide the Name Mount VMware Tools and choose a suitable icon. Click Next.
  4. Click Add and choose Execute Script.
  5. Edit the step as follows:
    • Step Name: Mount 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\MountTools.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 (optionally adding a message). Click Next.
  9. Click Finish.

Once you’ve completed this procedure, create a command workflow to handle the UnMountTools.ps1 and UpdateTools.ps1 scripts. All  configuration is identical except for the labels used and the name of  the script in the command line.