Hello mambe,
First of all, it would be good to have more details about the PC model (brand, model ...). If you have an installation CD for the printer or if Windows (which installs a lot of drivers) has it already.
Then we can see better to help you more effectively!
Regards!
Hello,
It's true that we're lacking a bit of detail.
This is an older printer for which the drivers are not available for Windows 11.
If that's the case, there aren't too many solutions (other than, of course, a Windows 10 virtual machine) if the Windows 10 drivers are not compatible or if the ones possibly integrated into Windows 11 only partially recognize it (printing) or are missing altogether.
https://support.hp.com/ch-fr/drivers/selfservice/hp-laserjet-pro-mfp-m25-m27-series/9365411/model/9365413