I have a Ranorex test which runs successfully when running it, directly, on a VM.
When calling this test remotly, by using Invoke-VMScript (running a batch file that calls the test), it fails with "operation requires an interactive window station".
I have administrator privileges on the computer.
Any idea what am I doing wrong?
Invoke-VMScript with the ScriptType bat runs your command with a cmd.exe line.
If the application you are calling requires a GUI, it will not work.
I don't know that application, but since it is described as a GUI Test tool, I'm afraid it will not work via Invoke-VMScript.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is there a way to call a GUI test remotly via PowerCLI scripting?
Just to be clear:
The Invoke-VMScript in ny script calls a batch file.
The batch file runs the GUI test.
Not that I know off.
There is no interactive session, so you can't start a GUI session I'm afraid.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference