Reactivate an administrator account

Solved
Tylkaz Posted messages 8 Status Membre -  
que56 Posted messages 24 Status Membre -
Hello

As stated in the title, I have disabled my administrator account using DOS commands on that same account. I turned off my computer and now I have a user choice to select, between my former administrator account and "Other user."
When I try to access my former admin account, it says "your account is disabled. Contact your system administrator."
So I immediately thought the rights were transferred to "Other user," so I tried to log in there, but it asks for a username and password. I tried admin admin, administrator administrator, but nothing works.

What should I do to reactivate my former admin account?

Thank you in advance for your response.
Best regards,
Tylk.

Configuration: iPhone / Safari 6.0

7 réponses

Tylkaz Posted messages 8 Status Membre 13
 
First of all, thank you for responding to my message.

I know this trick but the problem is that I can't even access a single session. So I can't access the DOS.

I put the Windows 7 CD in and in "repair computer" I can access a cmd.
I try this manipulation and it doesn't even recognize my user :/.
11
Anonymous user
 
Hello,
Create a new account using the command prompt from the installation DVD, type:
Net user username /add and press Enter.
Then, to give it Administrator rights:
net localgroup administrators username /add
Choose a new name, different from the one that was there before.
0
rapide
 
Hello everyone:

Profile recovery:
http://fspsa.free.fr/recuperation-profil.htm#activer-administrateur-predefini

+

UBCD4WIN UltimateBootCD4Win BARTPE:
http://fspsa.free.fr/ubcd4win.htm#winre

Limitations
The winre operates on a virtual drive X located in RAM, and it sees the Windows on the hard drive as C or D. This situation means it can't really do everything. For regedit, we know how to load hives from the hard drive and thus edit its registry, see Edit the registry of a partition with regedit. However, some commands won’t work as expected, because if they don’t have switches to operate on drive C instead of drive X, it’s the files on X that will be modified.
An example of a command that can work on the "remote" hard drive is given with the System File Checker SFC (System Files Checker) with its switches /offbootdir and /offwindir.
An example of a command that will run without giving the expected result is given with netplwiz or net user:
We want to activate the predefined Administrator account with the well-known command:
net user administrator /active:yes
There will be no error, but we will be disappointed with the result. Activating the Administrator of partition X was certainly not our intention. The workaround would be to use regedit to edit the remote hive and activate the Administrator account there. Since winre operates as SYSTEM (c:\windows\system32\whoami.exe responds "nt authority\system"), the SAM registry key is accessible without needing to give additional permissions. The operation is delicate and reserved for experienced users: this image shows how we proceeded from Windows to find the byte to modify.
Fortunately, it would be exceptional to reach this point. If there is no admin account, safe mode will have the built-in Administrator account. On the other hand, if it is not activated, it will remain hidden if an admin account exists. A completely normal but very unpleasant situation if you lose your password. In this case, create a new admin account with Password Renew; it’s quick and effective. New: Activate the predefined Administrator from winre
Another limitation is that explorer doesn't work.

+

"Another limitation is that explorer doesn't work."

Yes, it works; use the Open menu of Notepad = type and validate notepad.exe from the command prompt = Shift (right) + F10 to open a command prompt each time; alt + tab to switch between windows (just like in normal Windows).

You can view hidden files by modifying (each time) the registry of the console:

test.reg (yes, it's a basic name); in unicode (registry file format):

read this file from an accessible location and right-click merge or import

you can also modify the registry manually
You can also write it by hand in Notepad / Save / Import

***
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Start_SearchFiles"=dword:00000002
"ServerAdminUI"=dword:00000000
"Hidden"=dword:00000001
"ShowCompColor"=dword:00000001
"HideFileExt"=dword:00000000
"DontPrettyPath"=dword:00000000
"ShowInfoTip"=dword:00000001
"HideIcons"=dword:00000000
"MapNetDrvBtn"=dword:00000000
"WebView"=dword:00000001
"Filter"=dword:00000000
"SuperHidden"=dword:00000001
"SeparateProcess"=dword:00000001
"AutoCheckSelect"=dword:00000001
"IconsOnly"=dword:00000000
"ShowTypeOverlay"=dword:00000001
"ListviewAlphaSelect"=dword:00000001
"ListviewShadow"=dword:00000001
"TaskbarAnimations"=dword:00000001
"StartMenuInit"=dword:00000004
"Start_ShowRun"=dword:00000001
"Start_ShowMyDocs"=dword:00000002
"Start_ShowRecentDocs"=dword:00000001
"Start_ShowUser"=dword:00000002
"Start_ShowMyGames"=dword:00000002
"StartMenuFavorites"=dword:00000001
"Start_ShowMyComputer"=dword:00000002
"Start_ShowNetPlaces"=dword:00000001
"Start_LargeMFUIcons"=dword:00000001
"Start_MinMFU"=dword:0000000a
"Start_JumpListItems"=dword:0000000a
"Start_AdminToolsRoot"=dword:00000002
"StartMenuAdminTools"=dword:00000001
"TaskbarSizeMove"=dword:00000000
"DisablePreviewDesktop"=dword:00000000
"TaskbarSmallIcons"=dword:00000001
"TaskbarGlomLevel"=dword:00000000
"Start_PowerButtonAction"=dword:00000002
"Start_ShowControlPanel"=dword:00000002
"Start_ShowMyPics"=dword:00000002
"Start_ShowMyMusic"=dword:00000002
"AlwaysShowMenus"=dword:00000001
"NavPaneShowAllFolders"=dword:00000001
"NavPaneExpandToCurrentFolder"=dword:00000001
"HideDrivesWithNoMedia"=dword:00000000
"ShowSuperHidden"=dword:00000001


***

(with 2 blank lines at the end; everything between the 2 lines without ***)

3.35 KB (3,436 bytes)
3.35 KB (3,436 bytes)

CRC32: 9753AD51
MD5: 521DA2CB2C7A592218BAB765F4A640A6
SHA-1: E10316312607EA36391B8C5A5120E0499876A7E1
SHA-256: F1E5FEE5037587868637CB2B0F875840F0032747F49334291FDEF0F91F2667FE

You can view super-hidden files without using the command "attrib /?" just like in Windows; like in folder options. Not all options are used in the repair console, but this is a win 7 x64 config (valid for x86 as well). In normal Windows 7, hide normal and system files, the rest can remain as is. Export the registry key (which may be missing) to create this file if you wish.
0