The following code will reset the admin user password to B. This is helpful when needing to get access in the developement enviroment
MembershipUser user = Membership.GetUser("sitecore\\admin"); string password = user.ResetPassword(); if (!user.ChangePassword(password, "b")) { throw new Exception("Failed to set password"); }