Re-acquire windows7 system administrator authority

  
After reinstalling the window7 system, a user A was built and joined the company domain. (Reinstalling the system actually created a new administrator user, the password I don't know), this user A belongs to the administratos group, usually This account is also used for work, including the use of this user A when installing the oracle database. I want to review sqlplus yesterday. . Rubbed even reported various problems. After setting the ORACLE_SID=ORCL environment variable (the two databases are installed on the machine), although some problems are solved, it is always impossible to log in as sysdba.
Later, the information was found, oracl in sqlnet.ora on windows: SQLNET.AUTHENTICATION_SERVICES= (NTS) indicates that Oracle uses the authentication method of windows users. View your own user rights, belong to the Administratos group, and change it to the ora-dba group. After logging out and logging back in, sqlplus can log in to the system through sysdba! But now the logged in user is not in the Administratos group, causing many programs to run and prompting for the system administrator's username and password. But I don't know the password of the system administrator Administratos, only the password of the currently logged in user.
www.2cto.com
Solution:
1 Backup cmd.exe via winPE osk.exe
ASUS is built into the startup page via esc, other computer legends are F12 into the startup page


then input in the popup window:
c:
cd c: windowssystem32
cmd.exe and then back osk.exe




After performing the above steps, restart the operating system and enter the login page.



Click on the application to enter the cmd command line, and the cmd working directory is c:windowssystem32
then execute:
net user
see an account Administrator
Then execute
net user Administrator password (re-assign the new password to the Administrator)
net user Administrator /active:yes (activate the Administrator user)
Then you can log in to the system through the Administrator. After logging in, modify the group to which User A belongs to Adminstrators

Copyright © Windows knowledge All Rights Reserved