Installing Jenkins Slave as Service on win8.1 and win10

I am trying to install Jenkins slave service after starting the slave via web start.
I get the following error when it tries to install on windows 10 and windows 8.1.

[JenkinsWorkDirectory]$ c:\JenkinsWorkDirectory\jenkins-slave.exe install
at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
at WMI.Win32ServicesProxy.Create(String, String, String, ServiceType, ErrorControl, StartMode, Boolean, String, String, String[])
at winsw.WrapperService.Run(String[]_args,ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[]args).

I can install the slave service without any issue on win 7.
Any idea why is this happening or is it some limitation of Jenkins or am i missing some dependency?

  • Groovy: regex to filter out “Key:Value” pair and store in an array
  • How to auto merge git branches prior to a jenkins build
  • Jenkins svn plugin clean removal
  • Populating Jenkins workspace from Gerrit/Git
  • How to trigger a Jenkins job using the p4 plugin or p4?
  • Is there a way to keep Hudson / Jenkins configuration files in source control?
  • My jenkins version is 1.655 and using chrome browser when installing. Jenkins master is running on windows 7.

  • Jenkins/Hudson SVN Issue
  • Git plugin for Jenkins: How do I set env variables GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL?
  • Jenkins trigger a build based on the commit in multiple projects
  • How can I use just created build in downstream job
  • Xcode 7.3.1 UITests Code Coverage always at 0%
  • Jenkins Git plugin: git describe cannot describe anything
  • 2 Solutions collect form web for “Installing Jenkins Slave as Service on win8.1 and win10”

    I found another way to get the slave to install.

    1. Open a command window with “Run as Administrator”.
    2. Change directory to the place where you saved the slave-agent.jnlp file.
    3. at the prompt run “slave-agent.jnlp”
    4. Now with the running slave click the menu item to “Install as Service”.

    The trick is to do it while running as an administrator. This installs the service running under localsystem.

    Additionally, if you’re like me and you need your jenkins routines to hit another machine, you’ll need to change the service to run as a user with permission (network or otherwise) to do the task you want done.

    1. Open a command window with “Run as Administrator”.
    2. Just in case, You may have trouble with the .jnlp in “Steve Brownell” instructions, then, run the first line of your error message, shown below.
      c:\JenkinsWorkDirectory\jenkins-slave.exe install
    Git Baby is a git and github fan, let's start git clone.