Answers: <p>Try finding this file: C:\Program Files (x86)\Jenkins\secrets\initialAdminPassword</p>
  
Answers: CC BY-SA 4.0
Answers: 2021-04-14T09:37:01.553Z
Answers: 2021-04-14T09:37:01.553Z
Answers: Avi
Answers: <p>If you unable to find the the Initial password folder, then follow the below steps.</p>
  <ol>
  <li>Install git bash on our system.</li>
  <li>Open git bash</li>
  <li>check your working directory and move to <code>C:\Program Files\Jenkins.</code></li>
  <li>Do <code>ls</code> command and  you will see the <code>jenkins.war</code> folder.</li>
  <li>execute the command <code>java jar jenkins.war</code></li>
  <li>Now do <code>ls</code> , you can see the <code>jenkins.err.log</code> file.</li>
  <li>Do <code>cat jenkins.err.log</code> -- Now you can see the password within it copy it and post it on jenkins login.</li>
  </ol>
  
Answers: CC BY-SA 4.0
Answers: 2022-08-03T15:00:43.037Z
Answers: 2022-08-04T05:40:26.663Z
Answers: 2022-08-04T05:40:26.663Z
Answers: sudhir
Body: <p>I'm trying to install Jenkins, but, in one part I need to unlock Jenkins, and I didn't find the file with the password, it doesn't exist on my pc. I tried to run this command on my terminal (Windows):</p>
  <pre><code>java -jar jenkins.war
  </code></pre>
  <p>But this is the result: (I'm running the terminal as Administrator)</p>
  <p><a href="https://i.sstatic.net/gdoUK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gdoUK.png" alt="enter image description here" /></a></p>
  <p>So what do I do now?</p>
  
Comments: CC BY-SA 4.0
Comments: 2021-04-07T02:11:47.340Z
Comments: It should be in your home directoty, in [.jenkins/secrets/initialAdminPassword](https://stackoverflow.com/questions/48611411/initialadminpassword-file-is-not-created-in-jenkins-folder-in-windows-10-os). It should also ne referenced in the jenkins.log, if you can find that (probably in .jenkins/logs). Can't explain "unable to access..". Is it in system32?  Cd to.location or use dull path to war.
Comments: Ian W
Comments: CC BY-SA 4.0
Comments: 2021-04-16T02:16:05.477Z
Comments: that error message is not a password problem but the java command not finding the jenkins war file.  Make sure you run the command in the folder where that file is located on your PC
Comments: Newtopian
Comments: CC BY-SA 4.0
Comments: 2022-08-03T19:28:03.257Z
Comments: I highly recommend you use the docker container for Jenkins. It has great documentation https://github.com/jenkinsci/docker
Comments: Levi
Comments: CC BY-SA 4.0
Comments: 2023-02-13T16:02:14.270Z
Comments: If you not found the code as mentioned your folder go to Jenkins.err and then you see many lines as well as code...
Comments: Rakibuddin Ahamed
Tags: <jenkins>
Title: I can't find the jenkins password to unlock the website
UserDisplayName: Mateus
ThreadText: # I can't find the jenkins password to unlock the website
  
  (Asked by: username_0 on 2021-04-06)
  
  I'm trying to install Jenkins, but, in one part I need to unlock Jenkins, and I didn't find the file with the password, it doesn't exist on my pc. I tried to run this command on my terminal (Windows):
  
  ```
  java -jar jenkins.war
  
  ```
  
  But this is the result: (I'm running the terminal as Administrator)
  
  [![enter image description here](https://i.sstatic.net/gdoUK.png)](https://i.sstatic.net/gdoUK.png)
  
  So what do I do now?
  
  **Tags:** jenkins
  
  > **Comments:**
  > **username_1**: It should be in your home directoty, in [.jenkins/secrets/initialAdminPassword](https://stackoverflow.com/questions/48611411/initialadminpassword-file-is-not-created-in-jenkins-folder-in-windows-10-os). It should also ne referenced in the jenkins.log, if you can find that (probably in .jenkins/logs). Can't explain "unable to access..". Is it in system32?  Cd to.location or use dull path to war.  
  > **username_2**: that error message is not a password problem but the java command not finding the jenkins war file.  Make sure you run the command in the folder where that file is located on your PC  
  > **username_3**: I highly recommend you use the docker container for Jenkins. It has great documentation https://github.com/jenkinsci/docker  
  > **username_4**: If you not found the code as mentioned your folder go to Jenkins.err and then you see many lines as well as code...  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_5 on 2021-04-14. Score: 1
  
  Try finding this file: C:\Program Files (x86)\Jenkins\secrets\initialAdminPassword
  
  
  ---
  
  ### Answer by username_6 on 2022-08-03. Score: 0
  
  If you unable to find the the Initial password folder, then follow the below steps.
  
  1. Install git bash on our system.
  2. Open git bash
  3. check your working directory and move to `C:\Program Files\Jenkins.`
  4. Do `ls` command and you will see the `jenkins.war` folder.
  5. execute the command `java jar jenkins.war`
  6. Now do `ls` , you can see the `jenkins.err.log` file.
  7. Do `cat jenkins.err.log` -- Now you can see the password within it copy it and post it on jenkins login.
  
  
  ---
  
  