How to change a username or password

Updated: 02/04/2024 by Computer Hope
Password protected

Below are the steps to change your username or password in major operating systems, online services, and other locations.

Note

Unless you're the administrator or root of the system, you need to know the account's password before it can be changed.

Changing the username and password in Windows 11

Change password

  1. Press the Windows key, type sign-in options, and press Enter.
  2. On the Sign-in options page, click the Password option, and then the Change button.

Change password button in Windows 11.

  1. Verify your account by entering your Microsoft PIN (personal identification number).

Verification PIN for a Microsoft Account.

  1. Enter your current account password.

Form to enter current Windows password.

  1. To verify your identity, select the method to receive a code from Microsoft. Depending on your account profile, you may have more than one option.

Select method to receive verification code.

  1. Enter the verification code you received by the method selected in the previous step, and click the Verify button.
  2. Type your current password (A), type a new password (B), and click the Next button (C).

Form to change a Windows password in Windows 11.

  1. Click the Finish button to complete the password change.

Change username

Note

You may only change local accounts names, not Microsoft or administrator account names.

  1. Press the Windows key, type control panel, and press Enter.
  2. Select User Accounts.

User accounts selector in Windows 10.

  1. Click User Accounts again.

User accounts selector in Windows 10.

  1. Near the middle of the window, click Manage another account.

Manage another account link in Windows 10.

  1. Select the account whose name you want to change.

Where to select a user account in Windows 10.

  1. Select Change the account name.

Selector to change an account name in Windows 10.

  1. Choose a new account name (A) and click the Change Name button (B).

Window that allows users to change an account name.

Changing the username and password in Windows 10

Change password

  1. Press the Windows key, type sign-in options, and press Enter.
  2. In the section to the right, click Password to expand the section.

Changing the password in Windows 10.

  1. In the Password section, click the Change button.

Change password button in Windows 10.

  1. Verify your account by entering your Microsoft PIN.

Verification PIN for a Microsoft Account.

  1. Type your current password (A), type a new password (B), confirm your new password (C), and click the Next button (D).

Form to change a Windows password.

Change username

Note

You may only change local accounts names, not Microsoft or administrator account names.

  1. Press the Windows key, type control panel, and press Enter.
  2. Select User Accounts.

User accounts selector in Windows 10.

  1. Click User Accounts again.

User accounts selector in Windows 10.

  1. Near the middle of the window, click Manage another account.

Manage another account link in Windows 10.

  1. Select the account whose name you want to change.

Where to select a user account in Windows 10.

  1. Select Change the account name.

Selector to change an account name in Windows 10.

  1. Choose a new account name (A) and click the Change Name button (B).

Window that allows users to change an account name.

Changing the username and password in Windows 8

Windows 8 Charms menu

Change password

  1. Open the Charms menu by pressing Windows key+C and selecting Settings.
  2. In Settings, select Change PC settings.
  3. In PC Settings, select Users.
  4. Select the Change your password option to change the password for your local Windows account.

Change username

  1. Open the Charms menu from the Windows desktop by pressing Windows key+C and selecting Settings.
  2. In Settings, select Control Panel.
  3. Select User Accounts.
  4. In the User Accounts window, select Change your account name to change the username for your local Windows account.

Changing the username and password in Windows Vista and 7

Change password

  1. Open the Control Panel.
  2. Click Add or remove user accounts.
  3. Click the account you want to change.
  4. Click Change the password.

Change username

  1. Open the Control Panel.
  2. Click Add or remove user accounts.
  3. Click the account you want to change.
  4. Click Change the account name.

Changing the username and password in Windows XP

Change password

  1. Open the Control Panel.
  2. Double-click the Users Accounts icon.
  3. Select the account you want to change.
  4. Select the option Change my name to change your username or Create a password or Change my password to change your password.
Note

Windows XP Home users can only change the administrator password through Safe Mode.

Change username

  1. Open the Control Panel.
  2. Double-click the Users Accounts icon.
  3. Select the account you want to change.
  4. Click Change My Name.
  5. Enter the new name you want to use and click the Change Name button.

Changing the username and password in Windows 2000

Change password

Microsoft Windows 2000 users can change their username by pressing Ctrl+Alt+Del while in Windows to open the Windows Security window. From this window, click the Change Password button.

Enter your old password and the new password you want to use.

Change username

To change the username of an account on Windows 2000, you need an account with administrator rights. Follow the steps below if you are logged in with an administrator account.

  1. Open the Control Panel.
  2. Double-click the Users and Password icon.
  3. Make sure the Users must enter a user and password to use this computer option is checked.
  4. Highlight the account you want to change the username for and click the Properties button.
  5. In Properties, change the username.

Changing the username and password in Windows 95, 98, and Me

Change password

To change your password or password settings in Windows 95, 98, or ME, follow the steps below.

  1. Open the Control Panel.
  2. Double-click the Passwords icon.
  3. In the Password Properties window, click the Change Windows Password button.
Note

The Windows password can also be changed through the Users icon in Control Panel.

Change username

Change user settings in Windows 95/98 through the Users icon in Control Panel. However, this does not allow you to change the actual username. If you need to change the username, we suggest you create a copy of your existing username and use the new username. Below are the steps to do this.

  1. Open the Control Panel.
  2. Double-click the Users icon.
  3. Highlight the user you want to make a copy of and click the Make a copy button.
  4. Follow the wizard in creating a new user account.

Changing the Windows password via command prompt

Change a Windows account password through the Windows command line interface by following the steps below.

  1. Open an elevated command prompt.
  2. At the prompt, type the following command.

net user username password

Enter the Windows account name for username, and enter the new password for password. For example, if the Windows account is "JohnDoe" and you want to change the password to "newpass1234," type the command below.

net user JohnDoe newpass1234

If you don't want anyone to see the new password, use the following command instead, typing an * (asterisk) instead of the new password.

net user username *

Entering an asterisk instead of the actual password results in a prompt to enter the new password. However, the password you type is not displayed, preventing other people from seeing it.

Changing the username and password in Apple macOS

How you change a password on an Apple computer, such as an iMac or MacBook, depends on the version of its operating system. To proceed, select your macOS version below and follow the steps.

macOS Ventura and Sonoma

Here is how to change a password in macOS versions 13 and 14.

  1. Log in to the appropriate account.
  2. At the top-left corner of the desktop screen, click the Apple icon.
  3. Select System Settings from the Apple menu.

System Settings selector in macOS.

  1. In the sidebar, scroll down and click the Login Password selector. Then, in the section to the right, click the Change button.

Changing the login password in macOS.

  1. Type your old password (A). Type a new password (B). Confirm the new password (C). Optionally, add a password hint (D). When you're finished, click the Change Password button (E).

Password change window in macOS Sonoma and Ventura.

macOS High Sierra, Mojave, Catalina, Big Sur, and Monterey

Here is how to change the account password in macOS versions 10.13 through 12.

  1. Log in to the appropriate user account.
  2. In the menu bar, click the Apple icon to open the Apple menu.
  3. In the Apple menu, click System Preferences.

System Preferences selector in macOS.

  1. In the System Preferences menu, select Users & Groups.

Users and Groups icon in macOS.

  1. You may need to click the lock button if it appears to be locked and enter the administrator password.

macOS lock icon with prompt to click lock to make changes.

  1. Select the user account you want to change. Then, in the section to the right, click the Reset Password or Change Password button.

Changing the password in macOS.

  1. In the New Password and Verify fields, type the new password.
  2. After entering the new password, click the Reset Password or Change Password button again.

macOS 10.3 to 10.5.8

  1. Log in using an administrator account.
  2. In the Apple menu, select System Preferences.
  3. In the View menu, select Accounts.
  4. You may need to click the lock button if it appears to be locked. Enter the administrator password.
  5. Select the user account you want to change.
  6. Click Reset Password or Change Password.
  7. In the New Password and Verify fields, type the new password.
  8. After entering the new password, click the Reset Password or Change Password button again.
  9. If a dialog window pops up, click OK.

macOS 10.2 to 10.2.8

  1. Log in using an administrator account.
  2. In the Apple menu, select System Preferences.
  3. In the View menu, select Accounts.
  4. You may need to click the lock button if it appears to be locked.
  5. Select the user account you want to change.
  6. Select the Edit User option.
  7. In the New Password and Verify fields, type the new password and click OK.
  8. If a dialog window pops up, click OK.

macOS 10.1.5 or earlier

  1. Log in using an administrator account.
  2. In the Apple menu, select System Preferences.
  3. In the View menu, select Users.
  4. You may need to click the lock button if it appears to be locked.
  5. Select the user account you want to change.
  6. Select the Edit User option.
  7. In the New Password and Verify fields, type the new password and click Save.

Changing the Apple iPad and iPhone passcode

Change passcode

  1. On the iPad or iPhone, access the Settings app.
  2. On the Settings screen, scroll down and tap Touch ID & Passcode.
  3. Enter your current passcode.
  4. On the Touch ID & Passcode screen, tap Change Passcode.
  5. Enter your current passcode again, then enter your new passcode.
  6. Enter your new passcode again to confirm.

Add passcode

  1. On the iPad or iPhone, access the Settings app.
  2. On the Settings screen, scroll down and tap Touch ID & Passcode.
  3. On the Touch ID & Passcode screen, tap Turn Passcode On.
  4. Enter a passcode to use when unlocking your device.
  5. Enter the passcode again to confirm.
  6. If prompted, enter your Apple ID password.

Remove passcode

  1. On the iPad or iPhone, access the Settings app.
  2. On the Settings screen, scroll down and tap Touch ID & Passcode.
  3. Enter your current passcode.
  4. On the Touch ID & Passcode screen, tap Turn Passcode Off.
  5. On the Turn Off Passcode? prompt, tap Turn Off.
  6. If prompted, enter your Apple ID password.

Changing the username and password in Linux and Unix and most variants

Change password

Almost all Linux and Unix operating systems, including variants like Debian, Kali, and Red Hat, can access the passwd command. Enter this command at the prompt to change your password. You need to know the current password before being able to change the password to a new password.

See the passwd command page for additional information about this command.

Change username

To change the username, you need to have root or super-user access.

To change the username of an account, use the vipw command. See the vipw command page for additional information about this command.

To change the user settings, use the chfn command. See the chfn command page for additional information about this command.

Changing BIOS passwords

Change password

The system password appears immediately after turning on the computer, and the BIOS password is changed through the BIOS setup.

Change username

The computer BIOS does not have a username, only a password.

Changing Internet username and passwords

Changing your Internet username or password is based on your ISP (Internet service provider) and their policy for changing the username and password. Often, most ISPs allow you to change your password whenever it's needed. However, they often do not allow the account username to be changed.

Because every Internet service provider and web host is different, we suggest you contact the company for additional help with changing your username or password.

Changing online forum account password

Like the Computer Hope forums, most forums allow the users to change their password only through the profile or account settings. However, most companies do not allow you to change your username. Usually, you must create a new account to do this. If you need additional help with changing your username or password on another website, we suggest you contact the company or webmaster in control of that website.

If you cannot access an online account because you don't know the username or password, look for a link on the account login page for retrieving a forgotten username or password. This option helps in determining what your username or password is or helps in resetting your account password.

If you know your current online account password and want to change it, log in to your account, access its profile or settings, and change the password. For example, if you want to change the password for an AOL (America Online), Gmail, Outlook, or Yahoo e-mail account, log in to your mail account through an Internet browser. Then, access your account settings and look for an option to view or change the password.