Automation

 View Only
  • 1.  How to Launch application with GUI on esx guest machine

    Posted Dec 04, 2019 09:48 AM

    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



  • 2.  RE: How to Launch application with GUI on esx guest machine

    Posted Dec 04, 2019 10:28 AM

    Moderator: Moved to PowerCLI



  • 3.  RE: How to Launch application with GUI on esx guest machine

    Posted Dec 04, 2019 10:33 AM

    This is not a VMware restriction, but a solid security concept for Windows boxes.

    There are a couple of bypasses available, see https://serverfault.com/questions/690852/use-powershell-to-start-a-gui-program-on-a-remote-machine