I am trying to set up a Jenkins slave running as a Windows service, so that it starts automatically and can be managed remotely for updates, restarts, etc.

This works well but I am not able to build a job that uses COM objects to programmatically edit some files in Microsoft Office. After some research, I've tried the following approaches:

  • Creating desktop folders for the local account in the system profile locations.
  • Running the Jenkins service with an user account instead of the local account.
  • Modified the Windows registry to enable NoInteractiveServices and set the Jenkins service to allow access to desktop.

None of them have worked so far, and the Jenkins job stucks without any feedback to the console nor fails. Do you have any idea?

Your Answer

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

Browse other questions tagged or ask your own question.