Question: how to connect two laptops using switch?
Answer: Install, on both laptops, the software that came packaged with the peripheral switch.
Connect one end of a USB cable into the Standard B socket on the printer.
Plug the other end of the USB cable into the Standard A socket on the peripheral switch.