Nobody thinks about the router or BIOS password for years — until it’s forgotten. The good news: you can almost always get back into your own device. The bad news: usually at the cost of a reset. Here is what to try, in order, so you lose no more than necessary.

First, check which password you’ve lost

A router usually has two, and people mix them up all the time:

Where to see the Wi-Fi password:

The router’s settings password

  1. Check the label underneath. It shows the login address, user name and password. Newer routers print a password unique to each device; older ones use one per model: admin/admin and the like. Factory logins for many models are collected on the Default passwords page. If the factory password works, nobody ever changed it — a good reason to change it right now.
  2. If the password was changed and forgotten — reset. With the router on, press and hold the Reset button (usually recessed, you’ll need a paper clip) for 10–15 seconds until the lights blink, then wait a couple of minutes while it restarts. All settings go back to factory defaults; log in with the details from the label.
Before resetting, find your internet connection settings: the PPPoE user name and password, the connection type and the VLAN number, if any. They are in your contract with the provider or in your account on its website; if not, call support. Without them, the internet won’t work after the reset.

Right after the reset:

More on setup in the article on securing home Wi-Fi; for MikroTik there is a ready-made script on the MikroTik basic protection page.

BIOS or UEFI password

The BIOS can also have several passwords, with different consequences:

PasswordWhat it locksCan it be reset?
User (power-on)Starting the computerOn a desktop PC — by resetting the BIOS settings
Administrator (supervisor)Changing BIOS settingsOn a PC — usually yes; on a laptop — often only at a service centre
Drive (HDD/SSD)Access to the drive itselfOnly with data loss: the password is stored in the drive

Desktop computer. The password is stored with the BIOS settings and is reset together with them:

  1. shut down the computer and unplug it;
  2. find the CLR_CMOS jumper on the motherboard (also JBAT1 or CLRTC) or a Clear CMOS button on the back panel; the board’s manual says what to short;
  3. short the pins for 10–20 seconds or take out the CR2032 battery for a few minutes, then put everything back.

Laptop. The battery usually won’t help here: the administrator password is kept in a separate chip. Manufacturers remove it at a service centre if you show proof of purchase; on some business models a lost administrator password means replacing the system board. If it’s a work laptop, ask your IT department: they may have the password or a management tool.

Before resetting the BIOS, find your BitLocker recovery key. If the drive is encrypted, resetting the settings or changing security options may make the computer ask for the 48-digit key at startup. For a personal device it is stored in your Microsoft account (account.microsoft.com → Devices → BitLocker recovery keys); for a work device, ask the administrator.

After the reset, check the date and time, the boot mode (UEFI or Legacy), Secure Boot and the SATA mode (AHCI or RAID): if they went back to factory values, the system may not boot until you set the previous ones.

Server. The management controller password (iDRAC, iLO, IPMI) can usually be reset from the BIOS setup at boot or from the running system as root, for example ipmitool user list 1 and then ipmitool user set password 2 for the right user.

How not to end up here again