Locked out of your computer? It happens to everyone. Whether you forgot your password, inherited a used device, or need to help someone regain access, resetting a computer password is easier than you think.
This guide walks you through proven methods to reset passwords on Windows, Mac, and Linux systems. You’ll learn official recovery options, built-in tools, and safe workarounds that work in 2026.
Computer Password Types
Before you start, know what kind of password blocks your access:
Local account password: Stored only on your computer. Common on older Windows versions and standalone Macs.
Microsoft account password: Tied to your email. Used on Windows 10 and 11 for cloud sync and Microsoft services.
Apple ID password: Required for newer Macs with FileVault encryption or iCloud features.
Linux user password: Controls access to your Linux distribution and sudo privileges.
The reset method depends on your account type. Check which one you have before proceeding.
How to Reset Windows Password

Method 1: Reset Microsoft Account Password Online
If you use a Microsoft account to sign in, this is your fastest option.
Step 1: Go to another device (phone, tablet, or friend’s computer)
Step 2: Visit account.microsoft.com/password/reset
Step 3: Enter your Microsoft email address
Step 4: Choose how to receive your security code (email, phone, or authenticator app)
Step 5: Enter the code and create a new password
Step 6: Return to your locked computer and sign in with the new password
This works immediately. No restart needed. Microsoft syncs the new password across all devices within minutes.
Method 2: Use Windows Password Reset Disk
If you created a password reset disk before getting locked out, you’re in luck.
On the login screen:
- Enter any wrong password
- Click “Reset password” link that appears
- Insert your password reset disk (USB drive)
- Follow the Password Reset Wizard
- Create a new password
- Sign in immediately
Most people don’t create these disks in advance. If you haven’t, this method won’t work. Move to the next option.
Method 3: Reset Local Account Through Another Admin Account
Windows allows multiple user accounts. If another account has administrator rights, use it to reset your password.
Steps:
- Sign in to the other administrator account
- Press Windows + X and select “Computer Management”
- Expand “Local Users and Groups”
- Click “Users”
- Right-click your locked account
- Select “Set Password”
- Enter a new password twice
- Click OK
Warning: This method erases saved passwords in browsers, encrypted files, and email certificates tied to your old password. Use it only when other options fail.
Method 4: Use Windows Installation Media
No other admin account? Boot from Windows installation media to access recovery tools.
What you need: A USB drive with Windows installation files. Create one on another computer using Microsoft’s Media Creation Tool from microsoft.com/software-download.
Process:
- Insert the USB drive and restart your computer
- Press the boot menu key (usually F12, F2, or Del) during startup
- Select the USB drive to boot from
- Choose your language and click “Next”
- Click “Repair your computer” instead of Install
- Select “Troubleshoot” > “Advanced options” > “Command Prompt”
- Type these commands exactly:
diskpart
list volume
exit
Note which volume contains Windows (usually C:)
move c:\windows\system32\utilman.exe c:\windows\system32\utilman.exe.backup
copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exe
- Remove the USB drive and restart
- At the login screen, click the Ease of Access icon (bottom right)
- Command Prompt opens. Type:
net user [username] [newpassword]
Replace [username] with your account name and [newpassword] with your new password.
- Close Command Prompt and sign in
Important: Reverse the changes after logging in by booting back into the installation media and running:
copy c:\windows\system32\utilman.exe.backup c:\windows\system32\utilman.exe
This prevents security vulnerabilities.
How to Reset Mac Password
Method 1: Reset Using Apple ID
Modern Macs running macOS Catalina or later let you reset passwords with your Apple ID.
At the login screen:
- Enter any wrong password three times
- A message appears: “If you forgot your password, you can reset it using your Apple ID”
- Click the arrow button
- Enter your Apple ID and password
- Follow prompts to create a new password
- Sign in with the new password
This method only works if you enabled this feature during setup. If the option doesn’t appear, try the next method.
Method 2: Use Recovery Mode
Recovery Mode provides built-in password reset tools.
Steps:
For Intel Macs:
- Restart and immediately hold Command + R
- Release when you see the Apple logo or spinning globe
For Apple Silicon Macs (M1, M2, M3):
- Shut down completely
- Press and hold the power button until “Loading startup options” appears
- Click “Options”
Once in Recovery Mode:
- Click “Utilities” in the menu bar
- Select “Terminal”
- Type
resetpasswordand press Enter - The Reset Password window opens
- Select your startup disk
- Choose your user account
- Enter a new password twice
- Add a password hint
- Click “Next” then restart
Your Mac restarts normally. Sign in with the new password.
Method 3: Reset FileVault Password
If FileVault encryption is enabled, your options change.
During startup:
- When you see the FileVault login screen
- Enter any password three times
- Click “If you forgot your password, click here to reset it”
- Use your recovery key (a 24-character code given during FileVault setup)
- Or use your iCloud account if you allowed it to unlock your disk
Without the recovery key or iCloud access, you cannot decrypt the drive. Your data remains locked permanently. This is by design for security.
How to Reset Linux Password
Method 1: Use GRUB Boot Menu
Most Linux distributions use GRUB bootloader, which provides emergency mode access.
Ubuntu, Debian, and derivatives:
- Restart your computer
- Hold Shift (or Esc on some systems) during boot
- GRUB menu appears
- Highlight your default boot entry
- Press E to edit
- Find the line starting with
linuxorlinux16 - Go to the end of that line
- Remove
quiet splash - Add
init=/bin/bash - Press Ctrl + X or F10 to boot
You boot into a root shell without needing a password.
- Type
mount -o remount,rw / - Type
passwd yourusername(replace with your actual username) - Enter new password twice
- Type
sync - Type
reboot -f
Your computer restarts. Sign in with the new password.
Fedora, CentOS, RHEL:
The process is similar, but instead of init=/bin/bash, add rd.break to the kernel line.
Once at the emergency prompt:
- Type
mount -o remount,rw /sysroot - Type
chroot /sysroot - Type
passwd username - Enter new password twice
- Type
touch /.autorelabel - Type
exit - Type
reboot
Method 2: Use Live USB
Any Linux live USB gives you tools to reset passwords.
Steps:
- Create a live USB on another computer
- Boot from the USB (press F12, F2, or Del during startup)
- Select “Try Linux” without installing
- Open a terminal
- Type
sudo fdisk -lto list your hard drives - Identify your Linux partition (usually /dev/sda1 or /dev/nvme0n1p2)
- Mount it:
sudo mount /dev/sda1 /mnt(replace sda1 with your partition) - Change root:
sudo chroot /mnt - Reset password:
passwd username - Type new password twice
- Type
exit - Restart and remove the USB
Sign in normally with your new password.
Password Reset Best Practices
| Task | Why It Matters |
|---|---|
| Create a password reset disk immediately | One-time setup saves hours of frustration later |
| Enable biometric login | Fingerprint or face recognition bypasses password problems |
| Link accounts to recovery emails | Microsoft and Apple accounts need verified recovery options |
| Store passwords in a password manager | Tools like Bitwarden or 1Password prevent lockouts |
| Document your recovery key | FileVault and BitLocker keys unlock encrypted drives |
| Test your recovery method | Verify your reset process works before you need it urgently |
What to Do After Resetting Your Password
Update saved passwords: Change passwords in your browser, email client, and apps that auto-logged in with your old credentials.
Check security settings: Verify no unauthorized changes were made during the reset process.
Passkey Explained: The Future of Passwordless Authentication in 2026 Enable two-factor authentication: Add an extra security layer to prevent unauthorized password resets.
Create a new password reset disk: Windows users should make a fresh reset disk with the new password.
Update password manager: If you use one, update the stored password for your computer login.
Preventing Future Password Problems
Use a memorable pattern: Create passwords from phrases you remember. “I love hiking every Saturday” becomes “iLh3S!”
Write it down securely: Keep a physical note in a locked drawer. Digital notes on the same device don’t help if you’re locked out.
Set up PIN login: Windows and Mac both support 4-6 digit PINs that are easier to remember than complex passwords.
Enable automatic login: On personal devices in secure locations, automatic login eliminates password entry. Only do this if physical security is guaranteed.
Use biometric authentication: Fingerprint or facial recognition works even if you forget passwords completely.
Troubleshooting Common Reset Issues
“The password is incorrect” after resetting
Wait 5 minutes. Some systems cache old passwords briefly. Restart if the problem persists.
Reset option doesn’t appear
Your account might be managed by an organization. Contact your IT administrator for enterprise devices.
Recovery key doesn’t work
Make sure you’re entering the full key correctly. Keys are case-sensitive and include hyphens in specific positions.
Can’t boot from USB
Check BIOS/UEFI settings. Disable Secure Boot temporarily and enable USB boot priority.
Linux system doesn’t show GRUB
Hold Shift or Esc earlier during boot. Some systems hide GRUB unless you interrupt the boot process.
Frequently Asked Questions
Can I reset a password without losing data?
Yes. All methods in this guide preserve your files and folders. Only the password changes. However, some encrypted files tied to your old password may become inaccessible.
How long does password reset take?
Online resets through Microsoft or Apple ID take 2-5 minutes. Local resets using installation media or recovery mode take 15-30 minutes. The actual password change is instant; setup and access take time.
Will antivirus software block password reset attempts?
No. Password reset happens at a lower system level than antivirus software operates. Antivirus programs cannot interfere with legitimate reset procedures.
What if I forgot both my password and recovery information?
Windows: Use installation media method with command prompt access. Mac: Without Apple ID or recovery key, you cannot access a FileVault-encrypted drive. Reinstall the operating system as a last resort (this erases everything). Linux: Live USB method always works.
Is it legal to reset someone else’s computer password?
Only reset passwords on computers you own or have explicit permission to access. Unauthorized access to someone else’s device violates computer fraud laws in most countries.
Conclusion
Resetting a computer password doesn’t require technical expertise. Windows users have Microsoft account recovery, password reset disks, and installation media options. Mac users can leverage Apple ID, Recovery Mode, or FileVault recovery keys. Linux users benefit from GRUB emergency mode and live USB tools.
The fastest method depends on your preparation. Online account recovery takes minutes. Installation media methods take longer but work when other options fail.
Prevent future lockouts by enabling biometric login, creating password reset disks, and storing recovery information securely. Update your passwords in a password manager and test your recovery process before you need it urgently.
Every method in this guide works on current operating systems. Choose the approach that matches your account type and available resources. Your computer access returns quickly when you follow the right steps for your situation.
