How to reset the admin password in AEM 6.5 when I have no administrator permission in Windows? | Community
Skip to main content
December 2, 2024
Solved

How to reset the admin password in AEM 6.5 when I have no administrator permission in Windows?

  • December 2, 2024
  • 2 replies
  • 967 views

Try to reset the admin password following below link

How to reset the admin password in AEM 6.3 | Adobe Experience Manager

 

but fail and shows that  WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Found admin node: SegmentNodeBuilder{path=/home/users/D/D4z92KBRNNErnNt3l1yf}

 

How can I reset the admin password in this case?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by RajaShankar

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-AEM-6-3/_jcr_content/main-pars/download_section/download-1/admin-reset_groovy.txt 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

2 replies

Pradeep_Kumar_Srivastav
Community Advisor
Community Advisor
December 3, 2024

Hi @junjielu , you will need to run the script as admin. Also, please feel free to post this in the AEM community.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-manager-community 

RajaShankar
Community Advisor
RajaShankarCommunity AdvisorAccepted solution
Community Advisor
December 4, 2024

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-AEM-6-3/_jcr_content/main-pars/download_section/download-1/admin-reset_groovy.txt 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