If you are restoring a database on your local or if you have forgotten your admin password to Sitecore, you can default it back to admin/b.
To do so, copy and run the sql below -
UPDATE [aspnet_Membership] SET [Password]='qOvF8m8F2IcWMvfOBjJYHmfLABc=', [PasswordSalt]='OM5gu45RQuJ76itRvkSPFw==', [IsApproved] = '1', [IsLockedOut] = '0' WHERE UserId IN ( SELECT UserId FROM dbo.aspnet_Users WHERE UserName = 'sitecore\Admin' )
The above query also unlocks your account if it was locked due to wrong password attempts. Now you can log into Sitecore using the credentials username - admin and password - b.
This query works on all versions of Sitecore, including 8, 9, 10.1, 10.2, and 10.3.
Comments
Post a Comment