Running Arduino on Windows Server 2016

I’ve run the debug as per the PDF instructions available on the Ardunio website for troubleshooting. The results are below. If we could have some help or pointers in the right direction that would be much appreciated. Ardunio is installed on a Windows 2016 Server which we are utilising a remote desktop environment to deliver Windows 10 so the pupils are logging into the terminal server via the 19 available computers in our technology ICT suite. We have a GPO applied to lock down the environment to prevent the pupils accessing areas that they should not have access to make changes etc… with this GPO turned off Ardunio runs fine. It also runs fine on an administrator account which does not have the GPO applied. We obviously don’t want the GPO to remain turned off as we want it locked down to pupils. If you could help us identify which element of the GPO could be preventing Ardunio to run that would be much appreciated.

C:\Users\TestPupil2017\Documents>"C:\Program Files (x86)\Arduino\arduino_debug.exe" Loading configuration... org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147) at processing.app.windows.Platform.getFolderPathFromRegistry(Platform.java:70) at processing.app.windows.Platform.recoverSettingsFolderPath(Platform.java:55) at processing.app.windows.Platform.init(Platform.java:50) at processing.app.Base.guardedMain(Base.java:153) at processing.app.Base.main(Base.java:137)

There are three folders that must be accessible to run the Arduino IDE:

  • Arduino IDE installation folder (e.g. C:\Program Files (x86)\Arduino). You can install the IDE anywhere you like and if you use the "Windows ZIP file for non admin install" it won't make any changes to the registry.
  • Sketchbook folder (set in File > Preferences > Sketchbook location). Defaults to Documents/Arduino. The sketchbook location configuration is written to Arduino15/preferences.txt.
  • Arduino15 folder (%APPDATA%\Arduino15 or C:\Program Files (x86)\Arduino\portable if in portable mode)

Some people with problems similar to yours have found running the Arduino IDE in portable mode to be the solution: https://www.arduino.cc/en/Guide/PortableIDE

There is also a bug that requires the user's Documents folder to be accessible: https://github.com/arduino/Arduino/issues/7097 which has been fixed but only in the beta build, which has other newly introduced bugs so is probably not suitable for your application.

The Arduino IDE also tries to access the network when it starts. This should not cause failure if it can't access the internet but maybe it does need some level of network access to load.