Built-in Administrator Account - Enable or Disable

How to Enable or Disable the Built-in Elevated Administrator Account in Windows 7

   Information
This tutorial will show you how to enable or disable the built-in elevated Administrator account in Windows 7.

You must be logged in as an administrator to be able to do the options in this tutorial.

   Note
Standard user (Users) - The standard account is an unelevated restricted users account. It can help protect your computer by preventing users from making changes that affect everyone who uses the computer, such as deleting files that are required for the computer to work. It is recommend to create a standard account for each user instead of an administrator account for the user. When you are logged on to Windows with a standard account, you can do almost anything that you can do with an administrator account, but if a standard user wanted to do something that requires elevated rights that affects other users of the computer, such as installing software or changing security settings, Windows will give the standard user a UAC prompt to enter the password of an administrator account for approval and confirmation before allowing the action.

administrator user - Is an unelevated administrator account that is created by default during the installation of Windows 7, or is already setup or you on a OEM (ex: Dell) computer. An administrator account has complete access to the computer, and can make any desired changes. To help make the computer more secure, this administrator account type will be prompted by UAC by default to give confirmation before allowed to make any changes that require elevated administrator rights. Such as those that affect the system, other users, or when running anything elevated (Run as Administrator) since running elevated will allow it to have access to the entire computer.

Built-in "Administrator" - Is the hidden elevated administrator account that has full unrestricted access rights and permission on the computer. By default, this elevated "Administrator" account is not prompted by UAC by default to provide confirmation before allowed to make any changes that require elevated administrator permissions since it is an elevated account.

   Warning
If you enable the built-in Administrator account, then it is recommended to create a password for better security.

For additional security purposes, it is also not recommended to leave the built-in Administrator account always enabled, or to use it for everyday purposes.



:note: For the updated Windows 10 tutorial, please see here: Administrator account - Enable or Disable in Windows 10 - Windows 10 User Accounts Tutorials




OPTION ONE

Enable built-in Administrator in Local Users and Groups


NOTE: This option will only be available in the Windows 7 Professional, Ultimate, and Enterprise editions.
1. Open the Local Users and Groups manager.

2. In the left pane, click on the Users folder. (See screenshot below step 3)

3. In the middle pane, right click on Administrator and click on Properties. (See screenshot below)
Local_Users_and_Group.jpg
4. To Enable the Built-in Elevated Administrator Account
A) Uncheck the Account is disabled box. (See screenshot below step 6)

B) Go to step 6.
5. To Disable the Built-in Elevated Administrator Account
NOTE: This is the default setting.
A) Check the Account is disabled box. (See screenshot below step 6)
6. Click on OK. (See screenshot below)
Properties.jpg
7. Close the Local Users and Groups window. (See screenshot below step 3)

8. Log off, and you will now see the built-in Administrator account log on icon added (enabled) or removed (disabled) from the log on screen. (See screeenshot below)
NOTE: Click on the Administrator icon to log on to the built-in Administrator account.
Log-on.jpg





OPTION TWO

Enable built-in Administrator in an Elevated Command Prompt


NOTE: This option can be used in all editions of Windows 7. If your Windows 7 uses another language than English, then you may need to translate the word administrator part of the commands below to your language to use instead.
1. Open an elevated command prompt, and do step 2, 3, or 4 below for what you want to do.

2. To Enable the Hidden Built-in Elevated Administrator Account
A) In the elevated command prompt, copy and paste the command below and press Enter, and go to step 5 below. (See screenshot below)
NOTE: If you had previously renamed the built-in "Administrator" account's name, then you will need to substitute administrator in the command below with the new name instead.
net user administrator /active:yes

Command_Enable.jpg
3. To Enable the Hidden Built-in Elevated Administrator Account with Password
A) In the elevated command prompt, copy and paste the command below and press Enter, and go to step 5 below. (See screenshot below)
NOTE: If you had previously renamed the built-in "Administrator" account's name, then you will need to substitute administrator in the command below with the new name instead.
net user administrator password /active:yes

   Note
Substitute password in the command above with the password you want to use to log on to the built-in Administrator account.


4. To Disable the Hidden Built-in Elevated Administrator Account
NOTE: This is the default setting.
A) In the elevated command prompt, copy and paste the command below and press Enter, and go to step 5 below. (See screenshot below)
NOTE: If you had previously renamed the built-in "Administrator" account's name, then you will need to substitute administrator in the command below with the new name instead.
net user administrator /active:no

Command_Disable.jpg
5. Close the elevated command prompt.

6. Log off, and you will now see the built-in Administrator account log on icon added (enabled) or removed (disabled) from the log on screen. (See screeenshot below)
NOTE: Click on the Administrator icon to log on to the built-in Administrator account.
Log-on.jpg





OPTION THREE

Enable built-in Administrator in Local Security Policy


NOTE: This option will only be available in the Windows 7 Professional, Ultimate, and Enterprise editions.
1. Open the Local Security Policy editor.

2. In the left pane, expand Local Policies, and click on Security Options. (See screenshot below)
Secpol-1.jpg
3. In the right pane, right click on Accounts: Administrator account status and click on Properties. (See screenshot above)

4. To Enable the Hidden Built-in Elevated Administrator Account
A) Select (dot) Enabled. (See screenshot below step 6)

B) Go to step 6.
5. To Disable the Hidden Built-in Elevated Administrator Account
NOTE: This is the default setting.
A) Select (dot) Disabled. (See screenshot below step 6)
6. Click on OK. (See screenshot below)
Secpol-2.jpg
7. Close the Local Security Policy window. (See screenshot below step 2)

8. Log off, and you will now see the built-in Administrator account log on icon added (enabled) or removed (disabled) from the log on screen. (See screeenshot below)
NOTE: Click on the Administrator icon to log on to the built-in Administrator account.
Log-on.jpg



OPTION FOUR

Enable built-in Administrator from System Recovery (WinRE) at Boot


1. For how, see: How to Enable the Built-in Administrator Account from WinRE
That's it,
Shawn










 
Last edited:
Hello Vien, and welcome to Seven Forums.

That error means that you are not currently logged in to an administrator account that would have the access rights to perform that action. A standard user does not have the access rights for that.

If you do not have access to any administrator accounts, then you may need to reinstall Windows. :(

Dear Shawn,

Well noted and tks for your advice, I don't want to re install Window due to it take too much time:cry:, can we active the administrator by other way?

looking forward to your advice soon.

Thank you & nice weekend at yours!
 

My Computer My Computer

At a glance

window 7 Ultimate 32 bit
Computer type
Laptop
OS
window 7 Ultimate 32 bit
Hello Vien, and welcome to Seven Forums.

That error means that you are not currently logged in to an administrator account that would have the access rights to perform that action. A standard user does not have the access rights for that.

If you do not have access to any administrator accounts, then you may need to reinstall Windows. :(

Dear Shawn,

Well noted and tks for your advice, I don't want to re install Window due to it take too much time:cry:, can we active the administrator by other way?

looking forward to your advice soon.

Thank you & nice weekend at yours!


Dear Shawn,

Can we change from the standard user to Administrator user?

Tks.
 

My Computer My Computer

At a glance

window 7 Ultimate 32 bit
Computer type
Laptop
OS
window 7 Ultimate 32 bit
Vien,

You would have to be logged on to an administrator account to be able to make those changes.

Do you have any other administrator account on the computer that you can log in to for this?
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hi,

i've read many comments on how to enable admin account and then set password, but i'm trying to find a better and faster way to do it.

Above all, is there also a way to hide the password in the same script?

Thanks in advance for your reply.

Fabrizio
 

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo
Hi,

i've read many comments on how to enable admin account and then set password, but i'm trying to find a better and faster way to do it.

Above all, is there also a way to hide the password in the same script?

Thanks in advance for your reply.

Fabrizio

Hello Fabrizio, and welcome to Seven Forums.

I've updated OPTION THREE to add step 3 to help show you how to. :)
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Hi Brink, and thanks for your faster reply. :)

I apologize if i forgot to tell it before, but i need a script (better if vbs) to do that as i manage many new notebooks to initialize (for first time) and then enable the admin account.
 

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo
If you like, you could use the same command in a .bat file. You would just need to right click on the .bat file and click on "Run as administrator".
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
I will appreciate very much if you could suggest me that way.

Please, can you report here the code for even a .cmd?

Many thanks
 

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo
The code would be the exact same command line used in step 3 of OPTION TWO in this tutorial.
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Yes, but i need to run it as administrator.

Instead, i would double click it and let it make all the job, without errors or asking me password...
 

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
That's what your link says:

"If you like, you could use the same command in a .bat file. You would just need to right click on the .bat file and click on "Run as administrator"."


:shock:
 

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo
... need a script (better if vbs) to do that as i manage many new notebooks to initialize (for first time) and then enable the admin account.


Hi Fabfisc,

The below batch script will enable the Administrator account if the account is disabled, and vice versa.
Code:
@net session >NUL 2>&1||powershell Start-Process '%0' -Verb RunAs>NUL&&exit /b|| exit /b
@net user Administrator|find "active"|find "Yes">NUL&&( net user Administrator /active:no&&echo The Administrator account is now Disabled. )||( net user Administrator /active:yes&&echo The Administrator account is now Enabled. )
@timeout 2 >NUL & rem tsdiscon

And a VBScript translate of the above,
Code:
Set objShell = CreateObject("WScript.Shell")
If Not objShell.Run("Net Session",0,True) = 0 Then
	CreateObject("Shell.Application").ShellExecute "WScript.exe", WScript.ScriptFullName,"","RunAs",1
	WScript.Quit
End If

If objShell.Run("cmd /c ""Net User Administrator|Find ""active""|Find ""Yes""""", 0, True) = 0 Then
	objShell.Run "Net User Administrator /Active:No", 0, True
	objShell.Popup "The Administrator account is now Disabled.", 1.5, "Success", 64
Else
	objShell.Run "Net User Administrator /Active:Yes", 0, True
	objShell.Popup "The Administrator account is now Enabled.", 1.5, "Success", 64
End If

rem WScript.Sleep 2000 : objShell.Run "tsdiscon", 0, True
 

My Computer My Computer

At a glance

Windows 10, Windows 8.1 Pro, Windows 7 Profes...
Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
It seems that when i run both scripts, i receive the same result:

"The Administrator account is now Enabled."

All that even if i see (by typing "net use administrator") the referred value of variable "Enable account" set to "Yes" :shock::shock:

It seems that the second time i run the script it doesn't see the value "Yes"...
 

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo
Half solved!

Here is the correct script for the vbs part:

Dim WshShell : set WshShell = Wscript.CreateObject("WScript.Shell")

If WshShell.Run("cmd /c ""Net User Administrator|Find ""attivo""|Find ""Sì""""", 0, True) = 0 Then
WshShell.Run "Net User Administrator /active:No", 0, True
WshShell.Popup "The Administrator account is now Disabled.", 1.5, "Success", 64
Else
WshShell.Run "Net User Administrator /active:Yes", 0, True
WshShell.Popup "The Administrator account is now Enabled.", 1.5, "Success", 64
End If

Trying to find the right way to do the same via .cmd (for now, it always returns "The Administrator account is now Enabled."
 
Last edited:

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo
Ah. Silly me. I didn't take your country flag into account, Fabfisc.

So here is what the Italian verson for the batch (.bat|.cmd) version of the enable/disable Administrator script would look like.
Code:
@net session >NUL 2>&1||powershell Start-Process '%0' -Verb RunAs>NUL&&exit /b|| exit /b
@net user Administrator|find "attivo"|find "Si">NUL&&( net user Administrator /active:no&&echo The Administrator account is now Disabled. )||( net user Administrator /active:yes&&echo The Administrator account is now Enabled. )
@timeout 2 >NUL & rem tsdiscon


By the way, in your VBScript, Fabfisc, you seem to have assigned to a variable retcode but you never use it. Please do something about it, it's making me cringe :confused:.
 
Last edited:

My Computer My Computer

At a glance

Windows 10, Windows 8.1 Pro, Windows 7 Profes...
Computer type
PC/Desktop
OS
Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
Yep, i though i removed that line, it was only for test.

I edited and correct it.

Many thanks
 

My Computer My Computer

At a glance

Palermo
Computer type
PC/Desktop
OS
Palermo
Option 1 work Good. :D No Error
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core516GNVIDIA
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Ultimate x64
CPU
Intel Core5
Motherboard
Dell
Memory
16G
Graphics Card(s)
NVIDIA
Hard Drives
SSD
Antivirus
Strend
Browser
IE
NOTE: This option can be used in all editions of Windows 7.


I tried this on my wife's laptop running Windows 7 Home Premium and it did not work. I don't see "Accessories" in her "all programs" list, but did search for "cmd" and it came up with cmd.exe. I right clicked it and chose run as administrator and the net use command produced an error message instead. Her account is an admin account, but I know she needs an elevated admin account. This just didn't work for her. Any ideas?

TIA,
S
 

My Computer My Computer

At a glance

Windows 7 Pro 64bitintel i7 95010MgbNVIDIA GeForce GT 430
Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Windows 7 Pro 64bit
CPU
intel i7 950
Motherboard
sabertooth x58
Memory
10Mgb
Graphics Card(s)
NVIDIA GeForce GT 430
Hard Drives
Western digital 1Gb
Hello S,

Please go ahead and post a screenshot showing the command prompt after running the command to see what it says to see what may be wrong. :)
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top