Switch off the breaker powering the exterior light on the main circuit breaker panel in the laundry room, garage or basement.
Pull the old dangling photocell with one hand to make the wires taut. Cut the wires with wire cutters and discard the old photocell.
Strip the ends of the wires extending from the lamp post using wire strippers. Take off about one to two inches of insulation.
Hold the new photocell near the lamp post and braid the wires together between the exterior light and new photocell. Be sure to connect like-colored wires to avoid an electrical fire. Consult the photocell manufacturer's installation instructions for specifics.
Twist wire nuts over the braided wires to keep the connection together.
Fasten the new photocell to the lamp post using a screwdriver to drive screws into the mounting bracket. This will depend on the make and model of both the exterior light as well as the replacement photocell.