I am trying to install Jenkins agent 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
WMI.WmiException:AccessDenied
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 agent 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?
My Jenkins version is 1.655 and using chrome browser when installing. Jenkins controller is running on windows 7.