windows forget jenkins password.

1. goto the directory of jenkins. for example my installation is in D:Program Files (x86)Jenkins. 

find config.xml and open it and change root useSecurity -> false.

2. open cmd and cd to install directory.

use command to restart jenkins.

net stop jenkins

net start jenkins 

原文地址:https://www.cnblogs.com/VirtualMJ/p/11014220.html