jenkins installation windows 10 "Service Logon Credentials"
Solution 1:
When installing a service to run under a domain user account, the account must have the right to logon as a service. This logon permission applies strictly to the local computer and must be granted in the Local Security Policy. Perform the following to edit the Local Security Policy of the computer you want to define the ‘logon as a service’ permission:
- Logon to the computer with administrative privileges.
- Open the ‘Administrative Tools’ and open the ‘Local Security Policy’
- Expand ‘Local Policy’ and click on ‘User Rights Assignment’
- In the right pane, right-click ‘Log on as a service’ and select properties.
- Click on the ‘Add User or Group…’ button to add the new user.
- In the ‘Select Users or Groups’ dialogue, find the user you wish to enter and click ‘OK’
- Click ‘OK’ in the ‘Log on as a service Properties’ to save changes.
Then try again with the added user.
Solution 2:
Below solution worked for me on Windows10.
- Select Logon Type = Run Service as Local System ,click Install and complete the setup
- To unlock Jenkins, Go to C:\Program Files\Jenkins and open jenkins.err
- Get Administrator password ,paste and Install suggested plugins.
- Create first admin user and start using Jenkins
Solution 3:
If you are a windows 10 home user, you need to download and install GPEdit.msc in Windows 10 Home using PowerShell script before you can use "Local Security Policy". you can download it from here.