Dunfermline kicked out of Scottish Cup
The first division side were punished after bringing on banned Calum Woods (pictured) as a substitute after 61 minutes when they were already 4-0 ahead.
Woods was ineligible after picking up two bookings last season, and although Dunfermline boss Jim McIntyre has apologised for the mistake, the Scottish FA ruled that Stenhousemuir would be re-instated.
It said in a statement Dunfermline were banned on four counts of breaking competition rules.
Gordon Smith, the chief executive, said: "It is unfortunate that Dunfermline Athletic will no longer be participating in the cup, but ... the integrity of the competition was paramount in the decision making process."
Dunfermline say they intend to appeal. If that fails, Stenhousemuir have the prospect of a money-spinning match against Celtic in the fifth round as long as Celtic beat Morton as expected in their re-arranged match which was postponed last week because of the weather.