How to Open Command Prompts with Administrator Privileges (Elevated Mode) on Windows
- Activate (enable) administrator account. We should check the account status first.
- Set the password on this account. After enabling administrator, you might want to set password on this account. Just do it like this:
- Deactivate (disable) administrator account. For security reasons, disabling administrator account would be a proper action in system administration. You can just replace "yes" with "no" in the command to inactivate administrator for some reasons.
C:Windowssystem32>net user administrator
User name Administrator
...
Account active No
...
This account is not active currently. Let's activate it.
C:Windowssystem32>net user administrator /active:yes
The command completed successfully.
C:Windowssystem32>net user administrator
User name Administrator
...
Account active Yes
...
C:Windowssystem32>net user administrator admin_password
The command completed successfully.
C:Windowssystem32>net user administrator /active:no
The command completed successfully.