Repairing or replacing a power supply