2 Replies Latest reply on Dec 4, 2019 2:33 AM by LucD

    How to Launch application with GUI on esx guest machine

    uday1kiran Lurker

      With VMWare Powershell commandlets/powercli


      I can launch an application on a guest machine(on the esx server) using below commandlet.


      $script = '"%programfiles%\Common Files\Microsoft Shared\MSInfo\msinfo32.exe" /report "%tmp%\inforeport"'

      Invoke-VMScript -ScriptText $script -VM "win10-test" -GuestCredential $r -ScriptType Bat


      But these set of commandlets launches only console based applications.

      If we try to launch an application with GUI, it launches in background process and we can't see UI.


      Is there anyway to launch an application in foreground.

      I need to launch my exe which is used for GUI testing of our product.


      I am able to do in virtualbox, with below command.


      vboxmanage.exe guestcontrol machinename run --exe "C:\users\uday\Desktop\one.exe" --username uday --password mypassword


      But no option in vmware powercli