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:

  1. Logon to the computer with administrative privileges.
  2. Open the ‘Administrative Tools’ and open the ‘Local Security Policy’
  3. Expand ‘Local Policy’ and click on ‘User Rights Assignment’
  4. In the right pane, right-click ‘Log on as a service’ and select properties.
  5. Click on the ‘Add User or Group…’ button to add the new user.
  6. In the ‘Select Users or Groups’ dialogue, find the user you wish to enter and click ‘OK’
  7. 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.

  1. Select Logon Type = Run Service as Local System ,click Install and complete the setup
  2. To unlock Jenkins, Go to C:\Program Files\Jenkins and open jenkins.err
  3. Get Administrator password ,paste and Install suggested plugins.
  4. 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.