London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Hiep Le
Mar 17, 2022
  2782
(1 votes)

Create admin account without given access to CMS

Ever encountered a situation you are asked to take over a project to maintain it, you are given database backup & source codes but someone forgot to tell you the admin account to login CMS?

Fret not. If you are using CMS version 11 or ealier, edit your web.config to allow anonymous access to the CMS by updating the following sections:

1. Under <location path="EPiServer">

update from <deny users="*" /> to <allow users="*" />

2. Under <location path="EPiServer/CMS/admin">

update from <deny users="*" /> to <allow users="*" />

You now can access the CMS at http://your-site/EPiServer/CMS/Admin/Default.aspx

Go in and create your admin account and you're all set!

Mar 17, 2022

Comments

Scott Reed
Scott Reed Mar 17, 2022 11:49 AM

I would suggest updating the intro to this just to explain this is for pre CMS 12. As in current version which is .NET 5 there is no web config 

Hiep Le
Hiep Le Mar 18, 2022 04:44 AM

Thanks for your insight Scott. Updated :)

Devsina
Devsina Oct 17, 2023 02:15 PM

Thank you, saved me sometime!

Hiep Le
Hiep Le Oct 19, 2023 06:42 AM

Devsina, it's great that it could help you!

Please login to comment.
Latest blogs
Display page/block thumbnail based on selected site in multi-site solution

In previous blog we described how to control the visibility of the blocks or properties based on the current site in multisite solution. We can use...

Tomek Juranek | May 16, 2025

Understanding the Infrastructure Powering AI Agents for Marketing

The marketing world is increasingly captivated by the potential of AI agents. However, it's crucial to recognize that these agents are not simply...

Patrick Lam | May 15, 2025

Meet the Newest OMVPs – Winter 2025 Cohort

We're excited to officially welcome the latest winter cohort of Optimizely Most Valuable Professionals (OMVPs) - a group of passionate tech...

Satata Satez | May 14, 2025

Helper method to encode query string properly

When using Url.ContentUrl() in Optimizely 12, encodes spaces as + in the query string. If you want to encode the spaces as %20, use the below helpe...

sunylcumar | May 13, 2025

Get ContentReference from GUID

Optimizely CMS 12 provides a Utility function to retrieve Content Reference from a Guid by ussing the below static method. var contentReference =...

sunylcumar | May 13, 2025

Creating a Dropdownlist in Optimizely CMS: Populate ISelectionFactory with values from another block's properties

Create a Block to hold selection options using EPiServer.Cms.Shell.UI.ObjectEditing.EditorDescriptors; using EPiServer.PlugIn; using EPiServer.Shel...

sunylcumar | May 12, 2025