
I don't know whether you manage the same number of sites as I do, yet I've been managing different people groups DNN locales since I first started fiddling with it more than 10 years prior. (Kid, does that make me feel old!) Restoring the site from another person's surroundings to test, investigate, and fix an issue isn't a noteworthy issue the length of you have some involvement with IIS, SQL Server, and Windows. Be that as it may, the testing you have to do regularly obliges access to different records. This is the issue. Copying those records is either non-insignificant, or lengthy. So why not simply reset the majority of their passwords?

A device I used to utilize a ton as a part of the past is the LetMeIn ASPX page by Evotiva. It permits you to rapidly make another host client. From that point, you have entry to everything with the exception of other client accounts. Contingent upon the kind of customer, clients, and security laws in your general vicinity, this is something worth being thankful for. Nonetheless, in the event that you have the capacity to, its a helpful thing to have the capacity to utilize the very client accounts that are having the issues while performing your investigating. This is the place my tip comes into play.
To begin with, The Red Tape
Presently, before I go any further, it would be an outright best practice to have and you'd be flippant on the off chance that you didn't have a formal strategy to ensure yourself and the customers you're giving administrations to. Have an agreeable comprehension of how you acknowledge locales, how you look after them, and when you obliterate your duplicates of them. In case you're in help, I'd propose pulverizing your reinforcements when your customer affirms that their issue is tackled. The dependable guideline here, don't keep duplicates. Decimate them at your soonest comfort. That being said, I am not a legal advisor either, so you'll need to survey your arrangements and the laws in your district.
Resetting the Passwords for All Users
The connection of this DNN tip is to permit you access to truly mimic the clients on a DNN site. In the event that the quantity of clients is low, I'd propose leaving this article now to utilize my DNN Demo Skin Objects. Truly, they're really cool. You ought to look at them.
In a perfect world, it would be advantageous in the event that you knew the greater part of the passwords of the clients on the site, however we won't and we shouldn't. Rather, we'll change each secret word for each client to "watchword" utilizing the ASPX document beneath. You should simply make an ASPX record in the base of the website, glue this code into it, and afterward see it in a web program of your decision. From that point, its a solitary click to reset the greater part of the passwords to "secret word."
Caution!!! Never do this on a creation site for any reason or put this document on a generation server, anyplace. Additionally, it ought to just be utilized for LEGAL and ETHICAL purposes.
The code beneath does the meat of the work for you.
private int PortalId
{
get
{
return PortalController.GetCurrentPortalSettings().PortalId;
}
}
protected void ProcessUsers(object sender, EventArgs e)
{
try
{
IterateThroughUsers();
}
catch (Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex, true);
}
}
private void IterateThroughUsers()
{
var sb = new StringBuilder();
var totalRecords = 0;
sb.Append("Updating Superusers");
var superUsers = UserController.GetUsers(false, true, Null.NullInteger);
UpdateUserInfo(superUsers, ref sb);
sb.Append("Updating Normal Users");
var normalUsers = UserController.GetUsers(PortalId, -1, -1, ref totalRecords, true, false);
UpdateUserInfo(normalUsers, ref sb);
plcUserLog.Controls.Add(new LiteralControl(sb.ToString()));
}
private void UpdateUserInfo(ArrayList users, ref StringBuilder sb)
{
foreach (var user in users)
{
// convert the user object to UserInfo
var oUser = (UserInfo)user;
// update the password
// REQUIRES: Change the enablePasswordRetrieval attribute to True in the web.config
// for newer versions of DNN, use this:
//MembershipProvider.Instance().ResetAndChangePassword(oUser, "password");
var success = DotNetNuke.Security.Membership.MembershipProvider.Instance().ChangePassword(oUser, string.Empty, "password");
sb.AppendFormat(
success
? "{0} {1} ({2}) updated with a new password."
: "{0} {1} ({2}) NOT UPDATED!", oUser.FirstName, oUser.LastName,
oUser.Username);
// save the user
UserController.UpdateUser(PortalId, oUser, false);
}
}
Best DotNetNuke Hosting Recommendation
ASPHostPortal.com provides its customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. ASPHostPortal.com offers DotNetNuke hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable DotNetNuke Hosting, we should be your best choice.