Windows changes my printer ports. Help!?

Windows 10 (and presumably Windows 11 as well) has the very annoying ‘feature’ of thinking it can manage your printer better than you can yourself.

If you printer stops working for some inexplicable reason, then the changes are great that Windows had decided to change your printer port to a WSD port, even if you installed it with an IP port.

To avoid this behaviour, delete the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\WSD Port