Ir al contenido

CMD Basics and Super-Administrator Account in Windows

Windows user and group administration through the Command Prompt (CMD) and management of the built-in super-administrator account.

0views

This guide details the technical fundamentals for managing Windows accounts and privileges using exclusively the command-line interface (Command Prompt / CMD). You will learn to operate under privilege elevation and to take full control of the built-in super-administrator account in the operating system.


1. Operating with Elevated Privileges (Administrator)

Sección titulada «1. Operar con Privilegios Elevados (Administrador)»

To successfully execute 99% of Windows system administration tasks, it is mandatory to initialize the Command Prompt in elevated privilege mode. Otherwise, you will immediately receive an “Access denied” error (error code 5).

  1. Press the Win key on your keyboard.
  2. Type cmd in the search bar.
  3. In the right-side action panel, click “Run as administrator”.
  4. In the User Account Control (UAC) dialog, select Yes.

Before executing commands, it is vital to distinguish between the two types of security account architectures in Windows:

  • Local Users (Our Focus): Security accounts physically stored in the SAM (Security Accounts Manager) local database on the machine's motherboard. Their privileges and identities are exclusive to this PC.
  • Domain Users (Enterprise): Centralized accounts managed by an identity server (Active Directory or Azure AD/Entra ID). They are not configured locally using traditional net user commands.

A group functions as a container of identities to simplify the assignment of security permissions:

  • Administradores (Administrators): Members with absolute and unlimited access to all machine components (driver installation, policies, UAC bypass).
  • Usuarios (Users): Accounts with standard privileges. They can run authorized applications, but they cannot alter system settings or view third-party folders.

3. Built-in Super-Administrator Account (administrador)

Sección titulada «3. Cuenta de Súper-Administrador Integrada (administrador)»

Windows includes a native absolute control account called administrador (on Spanish systems) or administrator (in English). For security and hardening (hardening) reasons, this account is disabled by default.

Security Risk

This account operates by bypassing User Account Control (UAC), so any malware running under this session will have total and immediate access to the system kernel. Use it strictly for recovery tasks or critical maintenance.

Run the corresponding command according to your operating system's regional language settings:

Ventana de terminal
:: En sistemas Windows en Español
net user administrador /active:yes
:: En sistemas Windows en Inglés
net user administrator /active:yes

Once maintenance tasks are completed, you must disable the account again immediately to secure the system:

Ventana de terminal
:: En sistemas Windows en Español
net user administrador /active:no
:: En sistemas Windows en Inglés
net user administrator /active:no

By default, the super-administrator account has no password defined after its activation. It is imperative to assign it a complex password immediately after enabling it.

Method 1: Interactive and Secure Assignment (Recommended)

Sección titulada «Método 1: Asignación Interactiva y Segura (Recomendado)»

This method uses an asterisk (*) so that the console prompts for the password hiddenly, preventing it from being recorded in plain text on the screen or in the system history:

Ventana de terminal
net user administrador *
  1. The terminal will securely prompt for: Escriba la contraseña para el usuario:
  2. Type the password and press Enter (characters will not be displayed for security).
  3. Confirmation: Vuelva a escribir la contraseña para confirmarla:
  4. Press Enter to finish.

Useful for script automation, although less secure because the password is exposed in plain text:

Ventana de terminal
net user administrador MiClaveSuperSegura123!

If you create a temporary generic password and want the user to define their own key upon their first access:

Ventana de terminal
:: Forzar el cambio
net user administrador /logonpasswordchg:yes
:: Desactivar la obligación de cambio
net user administrador /logonpasswordchg:no

  • ✓ Enable Account: net user administrador /active:yes (Enables screen login).
  • ✓ Change Hidden Password: net user administrador * (Recommended security practice).
  • ✕ Execution without elevation: Will trigger error code Acceso Denegado (Code 5).