Declare @UserName NVarChar(255) Declare @NewPassword NVarChar(255) Declare @PasswordSalt NVarChar(128) Declare @Application NVarChar(255) -- Enter the user name and new password between '' -- do not leave any spaces unless intended to do so. -- Edit only between single quote characters Set @UserName = 'host' -- This default DNN host user Set @NewPassword = 'NEW_PASSWORD_HERE' --New password -- Do modify any code below this line Set @Application = (SELECT [ApplicationName] FROM aspnet_Users inner join aspnet_Applications on aspnet_Users.ApplicationId = aspnet_Applications.ApplicationId WHERE UserName=@UserName) Set @PasswordSalt = (SELECT PasswordSalt FROM aspnet_Membership WHERE UserID IN (SELECT UserID FROM aspnet_Users WHERE UserName=@UserName)) Exec dbo.aspnet_Membership_ResetPassword @Application, @UserName, @NewPassword, 10, 10, @PasswordSalt, -5, 0, null