VMware Cloud Community
ym2018
Contributor
Contributor

Error "operation requires an interactive window station" when using Invoke-VMScript

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?

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

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

Reply
0 Kudos
ym2018
Contributor
Contributor

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.

Reply
0 Kudos
LucD
Leadership
Leadership

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

Reply
0 Kudos