How to reset the user/password of Jenkins on Windows?
You can try to re-set your Jenkins security:
- Stop the Jenkins service
- Open the
config.xml
with a text editor (i.e notepad++), maybe be inC:\jenkins\config.xml
(could backup it also). - Find this
<useSecurity>true</useSecurity>
and change it to<useSecurity>false</useSecurity>
- Start Jenkins service
You might create an admin user and enable security again.
Note: On more recent Jenkins versions running on Windows the config.xml file is found here: C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\
Read Initial password :
C:\Program Files(x86)\Jenkins\secrets\initialAdminPassword
Default username is 'admin' and the password is the one from initialAdminPassword when you follow the above path.
'Manage Jenkins' --> 'Manage Users' --> Password
Then logout and login to make sure new password works.
This is for windows environment:
I got the Initial Admin password under C:\Users\Deepak("MyUser").jenkins\secrets\initialAdminPassword
I was able to login with user "admin" and above password.Then under Jenkins> peopleI edited the password of the user and clicked on apply to reflect the changes.