Prathap Reddy
Prathap Reddy

Reputation: 11

Jenkins Slave Installation as windows service

I'm unable to install Jenkins slave as Windows service and getting the following exception:

WMI.WmiException:AccessDenied

Upvotes: 1

Views: 3195

Answers (3)

TShetty
TShetty

Reputation: 41

run slave-agent.jnlp using admin cmd. and then try for install as service option under file. it will work.

Upvotes: 0

Hritik Kumar
Hritik Kumar

Reputation: 11

If you facing the access denied issue for install as windows service after installing the jenkins.war.

Just close everything. - Run command prompt with Admin rights. - Proceed to your jenkins directory using cd (or just copy paste the path into the command prompt). - Run the command: java -jar jenkins.war - wait for jenkins to be up. - Login into the Jenkins - Manage Jenkins > Select install as Windows service. - This will install it as windows service.

Upvotes: 1

Prathap Reddy
Prathap Reddy

Reputation: 11

Just install the slave using admin rights.

Upvotes: 0

Related Questions