Super-sub Martin Charlesworth was the Elgin City hero with two late goals in the Challenge Cup victory.
The teenager came off the bench to fire both goals in a dramatic last 11 minutes of an otherwise poor game.
Elgin grabbed the lead in spectacular fashion when Charlesworth raced onto a Martin Johnston flick-on and smashed an unstoppable shot high into the net.
And the youngster wrapped up the victory in injury-time when he slid home his second from close range.
Elgin City: Renton, Campbell, Dempsie, Low, Dickson, Hind, Easton, Mackay, Johnston, Gardiner, Cooke (Charlesworth 73). Subs Not Used: Huxford, Urquhart, Clark, Knight.
Goals: Charlesworth 79, 90.
Stenhousemuir: McCulloch, Murie, Dillon, Henderson (McBride 51), Tyrell, Tyrrell, McLeish (Diack 82), Murphy, Baird, Hutchison, McLaughlin. Subs Not Used: Connelly, Templeton, Carlin.
Booked: McBride.
Att: 276
Ref: W Collum