Chosen Solution

Working through an ssd upgrade and the wires popped out of the connector that I believe is the power button connection on the logic board. Wires are still in good shape, just need to replace the connector but having trouble finding it. Could also hard wire the wires back to the board, but not sure of polarity. Is there a way to test? I know the power putton is just a small voltage switch that triggers a relay. Also, is it safe to power up the device without the screen installed? just for the sake of having to re-dissassemble if I get the polarity wrong. Here’s my shoddy pic

Update (03/25/2019) Sure thing. I can’t find the little black connector that these exposed wires were harnessed into, it got fairly obliterated during removal. So perfect solution would be to find a replacement connector and just get these wires back into there the correct way. I understand this pin out is simple a toggle for the power switch, and was thinking of soldering them directly back to the board. I was told polarity shouldn’t matter, which is an issue since I dont’ know which wire came off which terminal. Taking another look tonight, however, i realize its going to be a super tight area to try and solder into. So I’m basically looking for a coupling solution, hopefully the original part but any other ideas are very welcome. Pics below

@deadimacs the connector is a Molex 53261-8602. Here is the schematic of how it is connected and “wired”.

Looks like connecting pins 1 and 2 would bridge the switch Update (03/27/2019) 53261-0271 is a 1.25mm Pitch PicoBlade Header, Surface Mount, Right-Angle, 2 Circuits, Tin (Sn) Plating. Here is the engineering drawing for the connector.

The Molex 53261 connector series goes up to 17 circuits. Check the last line of the legend on the right. It will show you the dimension of the connector needed for your logic board. Do not rely on stock images to determine the connector

Sorry to bring up an old thread Restoring a broken 2011 iMac and found the power button connector was absolutely chewed up inside, the cable came away with no resistance leaving the two terminals free, it took a while to free this broken connector from the molex Is it a 2 pin JST SH connector? I assume I can just order a new head for it? Edit: You can see it in Step 29 of this guide — Installing iMac Intel 27" EMC 2429 Dual Drive Kit (HDD or SSD) Edit 2: I think I’ve found it, the part is 51021-0200

So I did a very similar thing and I have the 2 cables connected to the header thing (I think I said it’s part 51021-0200) how exactly do I get it back on the motherboard?