In a first aspect, an electronic lock (12) suitable for replacing interchangeable core locks has a solenoid assembly comprising a solenoid coil (280) and a plunger (290) longitudinally aligned parallel to the rotational axis (A) of the cylinder (214) of the lock (12).