How to reset the password of Sitecore Admin User?
Published: 10 May 2023

Have you lost or forgotten your Sitecore admin user’s password? In this blog, we will explore how you can reset the password. Execute at your own risk. I have had success with this approach.
Connect to the core database and execute the needed SQL script. The following options are available:
Reset Password
This will default the password to b.
UPDATE aspnet_Membership SET Password='qOvF8m8F2IcWMvfOBjJYHmfLABc=', PasswordSalt='OM5gu45RQuJ76itRvkSPFw==', IsLockedOut = 0, FailedPasswordAttemptCount = 0 WHERE UserId IN (SELECT UserId FROM aspnet_Users WHERE UserName = 'sitecore\Admin')
Reset Password with Email Recovery (9+ only)
This will help you setup email recovery with password reset.
UPDATE aspnet_Membership SET Password='qOvF8m8F2IcWMvfOBjJYHmfLABc=', PasswordSalt='OM5gu45RQuJ76itRvkSPFw==', IsLockedOut = 0, FailedPasswordAttemptCount = 0, Email='YOUR_EMAIL-ID-HERE ', LoweredEmail = 'YOUR_EMAIL-ID-HERE' WHERE UserId IN (SELECT UserId FROM aspnet_Users WHERE UserName = 'sitecore\Admin')
Unlock Admin User
If you know the password but just need to unlock, I had a similar situation where the client had the wrong password and was trying to login with the old password, that could result in the account getting locked.
UPDATE aspnet_Membership SET IsLockedOut = 0, FailedPasswordAttemptCount = 0 WHERE UserId IN (SELECT UserId FROM aspnet_Users WHERE UserName = 'sitecore\Admin')
Through these given examples with solutions, I believe you would be able to successfully reset the password of your Sitecore Admin User.

Mitesh Patel - Technical Head - ADDACT
Sitecore || XMCloud || OrderCloud Certified
Mitesh, a distinguished Technical Head at Addact/Addxp, is a prominent figure in Sitecore/XMCloud/OrderCloud certified writing. From Sitecore XM Cloud Developer Certification to Sitecore 10 .NET Developer Certification and Sitecore OrderCloud Certification, Mitesh's expertise is unparalleled. Mitesh is not only a skilled Sitecore CMS developer but also a 12+ years experienced software engineer proficient in various technologies such as MVC, ASP.Net, C#, jQuery, and Azure cloud/AWS.