hi @JunjieLu ,
I tried this in my local for AEM 6.5 it worked perfectly.Please follow the below steps:
a) Download the Oak-run*.jar. I used
oak-run-1.68.0.jar
from this path https://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run/1.68.0/
b) Download the groovy script from https://helpx.adobe.com/content/dam/help/en/experience-manager/kb/How-to-reset-the-admin-password-in... and save this file as "admin-reset_groovy" remove .txt extension.
c) now from the folder you downloaded the above file run the below command as per segment store location
java -jar oak-run-*.jar console C:\software\crx-quickstart\repository\segmentstore --read-write ":load admin-reset.groovy"
d) the script auto changes your password to admin as shown below:
C:\software>java -jar oak-run-1.68.0.jar console C:\software\crx-quickstart\repository\segmentstore --read-write ":load admin-reset.groovy"
Apache Jackrabbit Oak 1.68.0
Found admin node: SegmentNodeBuilder{path=/home/users/s/sv54fUZ_7dxIUK6dNxGm}
Hope this helps. If possible move or tag this ticket to Adobe Experience Manager instead of Adobe experience Platform.
Regards,
Rajashankar.R