Can't start service - WMI Operation failure: AccessDenied
See original GitHub issueHello! Having problems with actual version on Windows 2012 R2. Successfully installed service for nginx.exe with default minimal config. Starts with SYSTEM account.
If I start service (under administrator rights) with “net start” I got:
System error 5 has occurred. Access is denied.
If I start service with “WinSW.NET4.exe start” I got:
2017-04-21 11:35:01,236 INFO - Starting ServiceWrapper in the CLI mode 2017-04-21 11:35:01,518 FATAL - WMI Operation failure: AccessDenied WMI.WmiException: AccessDenied at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result) at WMI.WmiRoot.InstanceHandler.Invoke(Object proxy, MethodInfo method, Object[] args) at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor) at winsw.WrapperService.Main(String[] args)
Thanks,
sukinsky
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (3 by maintainers)
Top GitHub Comments
I have Windows server 2016 and had the same problem with permissions(even I have admin rights on this server). I solving it by similar instructions
sc.exe create Jenkins_agent_xx binPath= "C:\agents\agent_xx\jenkins-slave.exe"
HI @sukinsky ,
I had the similar issue that i fixed with below 2 steps: