To set up the Wi-Fi password for an HP printer, go to the printer's control panel and access the network settings. Choose the Wi-Fi setup option and select your wireless network from the available list. If your network is password-protected, enter the password using the on-screen keyboard or physical buttons. Confirm the selection, and the printer will attempt to connect to the network. Once successfully connected, a confirmation message will be displayed.