York's miserable season ended on a positive note as they secured their biggest win of the season in a 4-0 rout of relegated Farnborough.
The Minstermen had not scored in their previous five games, but took just nine minutes to break the deadlock.
Kevin Donovan supplied the cross from the left and striker Andy Bishop headed home for his 11th goal of the season.
City midfielder Bryan Stewart scored his first goal for the club in the 53rd minute when he fired into the top corner.
York defender Steve Davis made a crucial block to deny Michael Charles just after the restart, but within a minute Lev Yalcin latched on to Bishop's through-ball to score.
And substitute Paul D Robinson rounded off the scoring in the second minute of stoppage with a low shot into the bottom corner.