Wednesday, May 14, 2014

How to unlock if the Global Administrator is locked?

How to unlock if the Global Administrator is locked?

If you can get to access the database, you can modify the administrator record in the CMS_User table.

Method 1:

Using below query to unlock Global Administrator from Database:

 UPDATE CMS_User set UserEnabled=1 WHERE UserID=<userid>

Method 2:

you can also use the CMSAdminEmergencyReset key in your web.config file.
Reseting the password via a web.config key can be done by inserting the following key to the appSettings section of your web.config:

<add key="CMSAdminEmergencyReset" value="<your username>;<your new password>;[true/false]"/> 


The first and second parameter specify your user name and your new password, delimited by a semicolon. The third parameter is optional and indicates whether you want to create a new user with global administrator rights.

The appsetting key will be automatically removed from web.config after you got access to the CMSDesk or CMSSiteManager.


No comments:

Post a Comment