Reputation: 11
I'm unable to install Jenkins slave as Windows service and getting the following exception:
WMI.WmiException:AccessDenied
Upvotes: 1
Views: 3195
Reputation: 41
run slave-agent.jnlp using admin cmd. and then try for install as service option under file. it will work.
Upvotes: 0
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