How should I connect the printer to an electrical outlet to ensure proper grounding?

Connect the power cord between the device and a grounded AC outlet, ensuring the voltage is suitable for the product as indicated on its label. The device supports 100-127 V AC or 220-240 V AC at 50/60 Hz.

From the official HP Laserjet Pro Mfp M25 M27 manual, page 1

Have a follow-up question?

Answers from the official manual.

Common questions