In Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 or later, the OS also creates a built-in “elevated” Administrator account with empty password by default. But this Administrator account is disabled by default in all clean installation and upgrade of Windows to Windows OS newer than Windows XP. The purpose for disabling the Administrator account is to enhance the security protection of the system. The enhanced security practice also applies to factory pre-installed Windows from original equipment manufacturers (OEMs) and system builders.
You can always enable and login with the default built-in Administrator account if you prefer (once enabled, Administrator account has no password until you change it). The following guide details several ways you can do it.
How to Enable and Activate Administrator Account in Windows 10, Windows 8.1, Windows 8, Windows 7 and Windows Vista
Method 1
Open and run open elevated Command Prompt shell window as administrator, and run the following command:
net user administrator /active:yes
net user administrator password /active:yes
Method 2
Enable the built-in Administrator account by using the Local Users and Groups MMC console (Microsoft Management Console) to change the properties of the Administrator account:
- Open the MMC console by searching for MMC.
- Go to File -> Add/Remove Snap-in.
- Select Local Users and Groups under “available snap-ins” and click on Add.
- When prompted to “Choose Target Computer”, select Local computer and click Finish.NoteIf you’re attempting to manage remote computer, then choose “Another computer” and select your computer accordingly.
- Click OK when done to open “Local Users and Groups”.
- Expand Local Users and Groups and go to Users tree.
- Right-click the Administrator account and select Properties. The Administrator Properties window appears.
- On the General tab, clear the Account is Disabled box and hit OK.
- Close the MMC console.
- Administrator access is now enabled.
Method 3
Enable and activate Administrator account via Local Security Policy
Method 4
You can enable the Administrator login access automatically during the unattended setup and installation of Windows, by using the AutoLogon of Microsoft-Windows-Shell-Setup unattended Setup setting. Microsoft-Windows-Shell-Setup contains elements and settings that control how the Windows operating system shell is installed on a destination computer.
To do so, set the AutoLogon setting to Administrator in the Microsoft-Windows-Shell-Setup component. This option will enable the built-in Administrator account in Windows, even if a password is not specified in the AdministratorPassword setting in UserAccounts element.
For fully automated procedure, system administrators can create an answer file by using Windows System Image Manager (Windows SIM) and other deployment tools, as shown in the sample below that will enable the Administrator account, specify an Administrator password, and automatically log onto the system.
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AutoLogon> <Password> <Value>SecurePasswd123</Value> <PlainText>true</PlainText> </Password> <Username>Administrator</Username> <Enabled>true</Enabled> <LogonCount>5</LogonCount> </AutoLogon> <UserAccounts> <AdministratorPassword> <Value> SecurePasswd123</Value> <PlainText>true</PlainText> </AdministratorPassword> </UserAccounts> </component>
If the Administrator account on the system has already enabled, but you don’t need it, here’s a few ways to disable the Administrator account.
How to Disable Administrator Account Logon Access
Method 1
Under the Command Prompt shell window, run the following command:
net user administrator /active:no
Note that you may need to disable UAC or open elevated Command Prompt as administrator.
Method 2
Follow steps in method 2 above while enabling the Administrator account in Local Users and Groups app, but select the Account is Disabled box and hit OK to deactivate and disable the Administrator account
Method 3
Follow steps in method 3 above while enabling the Administrator account in Local Security Policy app, but select the Disabled radio button for Accounts: Administrator account status setting.
Method 4
Reset and remove all unique and customized account information including product activation status to return to end users first-run out-of-box experience (OOBE) by using sysprep.exe /generalize command. Sysprep (System Preparation Utility) is an integral part of the operating system and is always present in the C:\Windows\system32 directory, and thus can be invoked from the command line as shown below or via a GUI dialog box. To run it, execute any of the following command in command prompt or Run box.
sysprep /generalize
Or,
C:\Windows\System32\sysprep\sysprep.exe /generalize
The next time the computer starts, the built-in Administrator account will be disabled.
Above tricks work on most versions of Windows OS, including Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016 or later.