Skip to content

Reset WordPress passwords

  1. Choose the intended servers and sites. Start with one installation.
  2. Open Choose action → Bulk tools → Users → Reset all passwords.
  3. Choose Role deliberately. For just one account, use Reset one user password and enter Login, email or numeric ID. Supply New password (optional) when you need a known replacement; leaving it blank generates one.

Reset all passwords form with Role and selected-target sections

Choose the Role deliberately before reviewing a broad password reset. Arrange account recovery first. Select the image to view it full size; use your browser’s Back command to return.

Reset one user password form with identity and optional new-password fields

For one account, enter its login, email or numeric ID and a known replacement password when needed. Select the image to view it full size; use your browser’s Back command to return.
  1. Review the action and targets, then confirm. Read every site’s final result, including skips. Finished can include failed sites; see Read the outcome.

Check each account result and arrange secure recovery for its owner. Email is often a clearer cross-site identifier than a numeric ID.

Use a root terminal on the server hosting the sites. Review the user list and /var/log/cpfenceav/wp-sites-list.txt first, and arrange secure recovery with the account owners. The CLI uses this server’s listed installations, not checked WebUI rows.

For the interactive method, run the appropriate command without arguments and answer its inventory and account/role prompts:

Reset Command
All users or one role cpfence --bulk-wp-reset-all-passwords
One account cpfence --bulk-wp-reset-user-password

For automation, reset administrator passwords with:

Terminal window
cpfence --bulk-wp-reset-all-passwords-auto administrator

Replace administrator with another role, or all only when every matching account is intended. To generate new passwords for one account across the listed sites:

Terminal window
cpfence --bulk-wp-reset-user-password-auto [email protected]

Or supply an explicit replacement using the single IDENTIFIER,PASSWORD argument:

Terminal window
cpfence --bulk-wp-reset-user-password-auto '[email protected],YOUR_NEW_PASSWORD'

Read each site’s final result, notify the affected owners and check their sign-in. Encourage them to change temporary passwords after recovery. Do not assume one account’s numeric ID identifies the same person on every site.