The small HP LaserJets - P1005, 1020, 1018, P1102 and their siblings - outlive every computer they were bought with. The printers still work; the setup discs are long gone and were made for Windows XP or 7 anyway. These models are host-based: they print nothing without the exact right driver. Here is how to install them on Windows 10 and 11 today.
Quick answer
Connect the printer over USB, turn it on, then open Settings, Bluetooth & devices, Printers & scanners, Add device. Give Windows a minute - many LaserJets install with a built-in driver. If yours is not offered, download the driver package for your exact model from HP's official support site (search the model, e.g. "LaserJet P1102") and run it - method 2 below.
These LaserJets have no standard printing language built in - the driver on the PC does the work. A generic driver cannot substitute; it must match the model.
Installers from the XP and Windows 7 era fail or install broken drivers on modern Windows. The current package from HP's site is the correct source.
Some models install straight from Windows' driver store, others need the HP package - which case you have depends on the exact model.
For some packages the printer must be disconnected until the installer asks for it - connecting too early leaves a half-configured device that blocks the proper install.
Stay safe: Download drivers only from HP's own support site. Third-party "driver download" sites repack old installers and often add unwanted software.
printui /s /t2, and delete driver packages of this model if present.services.msc, Print Spooler, Restart).If you do not know the exact model, several devices need attention at once, or the manual route did not find a match - Outbyte Driver Updater identifies your installed hardware automatically and updates the drivers from official sources, with a backup before every change. The scan and diagnosis are free.
Download Driver Updater Downloads Outbyte Driver Updater for Windows 11, 10, 8 and 7. Free 2-day trial, no credit card required.Generally yes over USB - either with the driver Windows itself offers or with HP's package for the model. The printers are old but the driver path still exists; the key is the exact model match and a clean install.
On the label - on the front panel or the sticker underneath. Use the full designation (P1102 vs P1102w matters: the w has Wi-Fi and its own package).
For these USB-only models - no. The basic driver package is enough to print. HP Smart is aimed at newer network printers; it will not harm, but it is not the fix for a missing driver.