guide · static export
Security · accounts

Create a Backup Admin Account Before You Lock Yourself Out

A single administrator account is a single point of failure. A second local admin with a long password and no daily use is the difference between a ten-minute fix and a reinstall.

by@guidox updated:11/01/26 time:15 min level:Beginner tested on:Windows 11 24H2 works on:Windows 10, Windows 11, Windows Server 2019 tools:PowerShell as administrator, Settings
TL;DR

Create a second local admin with **New-LocalUser** and **Add-LocalGroupMember**, confirm it can sign in once, and keep the password offline. Never use it for daily work.

Before you start

Requirements

  • Admin rights
  • A password manager or a safe
  • 15 minutes
Step by step

Instructions

01

See who can administer the machine

**Get-LocalGroupMember** lists every member of the administrators group, including domain accounts. A machine with exactly one member has no second way in.

Get-LocalGroupMember -Group Administrators | Select-Object Name,ObjectClass,PrincipalSource
Get-LocalUser | Select-Object Name,Enabled,LastLogon
whoami /groups | Select-String -Pattern 'S-1-5-32-544'
02

Create the account with a long password

**New-LocalUser** takes a secure string and writes a local account without a Microsoft identity. A passphrase of five words is easier to type correctly and harder to guess than eight characters.

$pw = Read-Host -AsSecureString 'Passphrase for the backup admin'
New-LocalUser -Name 'AdminBackup' -Password $pw -FullName 'Backup Administrator' -Description 'Break-glass account' -PasswordNeverExpires
Get-LocalUser -Name 'AdminBackup' | Select-Object Name,Enabled,PasswordLastSet
03

Add it to administrators and nothing else

**Add-LocalGroupMember** grants the rights, and the account needs no other group. Keeping it out of Users and Remote Desktop groups reduces what it can do if the password leaks.

Add-LocalGroupMember -Group Administrators -Member 'AdminBackup'
Get-LocalGroupMember -Group Administrators
Get-LocalGroupMember -Group Users | Where-Object Name -like '*AdminBackup*'
04

Sign in once to prove the account works

An account that was never used can still fail at the first sign-in. Switch user, sign in, open an elevated prompt and sign out again.

# Start > user icon > Switch user > sign in as AdminBackup
whoami
whoami /groups | Select-String -Pattern 'S-1-5-32-544'
# sign out again
05

Record the password somewhere off the machine

A password only stored in the browser profile of the account it protects is worthless. The password manager of your main account or a paper copy in a safe is the point of the exercise.

# password manager entry: machine name, account AdminBackup, passphrase
Get-LocalUser -Name 'AdminBackup' | Select-Object Name,Enabled,PasswordNeverExpires,LastLogon
Get-LocalGroupMember -Group Administrators | Measure-Object
06

Prove the rescue path with one real recovery

An admin account you have never used is a theory. Reset the daily account's password from the backup account, sign back in with it, and confirm the elevation prompt accepts the backup credentials.

# sign in as the backup admin, open PowerShell as administrator
net user dailyuser "NewTempPassword!2026"
net user dailyuser | Select-String -Pattern 'Account active|Last logon'
# sign in as dailyuser with the new password, then set your own again
whoami /groups | Select-String -Pattern 'S-1-5-32-544'
Troubleshooting

Common issues

Sign-in says the account is disabled

New-LocalUser creates enabled accounts, but a policy can disable them. Enable it with Enable-LocalUser -Name 'AdminBackup'.

The backup account cannot elevate

Check the group membership with Get-LocalGroupMember. A typo in the group name silently creates nothing.

The password field rejects the passphrase

The default policy requires complexity, not length alone. Mix case, digits and a symbol, or change the policy for this local account.

The account is gone after a reset

A PC reset removes local accounts. Keep the account on machines you maintain long term and recreate it after every reinstall.

FAQ

Frequently asked

Is a second admin account a security risk?

Only if it is used daily or has a weak password. An unused account with a long passphrase adds a recovery path without adding exposure.

Does this work with a Microsoft account?

Yes, but a local account is the better fallback because it does not depend on the network or on Microsoft's sign-in service.

What if I forget both passwords?

Then the recovery environment and a Windows installation medium are the only route. That is exactly the situation this account prevents.

How to undo this

Remove the account with Remove-LocalUser -Name 'AdminBackup'. Make sure another administrator exists before you run it.

Changelog · 1 entry
  1. 2026-10-31
    First version
Interactive version: checklist, feedback, related guides →

Free · no account needed · tracks your progress