I am using Airytec Switch Off which creates a server on Windows that accepts commands on a specified network port and executes scripts remotely. Turning off/restarting PC works fine.

Then I created a custom cmd script, say open_matlab.cmd which simply has the word matlab as a command. When I execute it locally it works and Matlab opens. But when I run it remotely via Airytec a process is created in Task Manager but Matlab is not opening. The same happens with Open calculator.cmd which is preinstalled in Airytec directory i.e. it creates a process but it's not opening calculator. All custom scripts are located in C:\Program Files\Airytec\Switch Off\scripts and the system is Windows 8.1 x64.

I have also tried different commands such as start matlab.exe,

C: cd Desktop start matlab.exe

that all work locally but not remotely. Is there any security setting I have to change?

  • Hi, are you able to open any graphic program with this kind of script? Is it possible with Airytec Switch Off maybe you need a remote desktop like program. BTW why the bash tag?
    – Hastur
    Dec 1, 2015 at 10:52
  • Ok from this page it seems you can. Did you open something predefined and graphic? If you are able to do it, you can exclude problem with graphic connections and you can take inspiration from there.
    – Hastur
    Dec 1, 2015 at 11:00
  • @Hastur From those predefined scripts actually only calculator is preinstalled. Either way, I was not able to make any script to open a program graphically. They only work locally. I have also tried with Skype but same thing. It just opens a process, CPU usage goes up and then drops to around 1%.
    – mgus
    Dec 1, 2015 at 11:20
  • Just an idea: check if you have some firewall that inhibit the graphic traffic (port, services... ) on both computer, and try again with the calc script. From the previous link it seems you can make start Ms Word too give it a try to that one too... but better to do test on calc. (the simpler the better).
    – Hastur
    Dec 1, 2015 at 11:40
  • @Hastur I don't know which ports/services refer to graphic traffic in order to forward or enable them. Are you referring to the graphics card driver?
    – mgus
    Dec 1, 2015 at 11:45

1 Answer 1


You could try psexec. It's a sysinternals (now Microsoft) product and works nice and easy; just run the exe with remote computer name and location of the executable (or script) you want to start. It's easy scriptable too!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.