York continued their stellar form in the run up to the play-offs despite their faint title hopes finally being put out.
City needed a monumental swing for Barnet to give away top spot and, with the Bees duly confirming promotion, York beat Solihull Moors 2-0.
It was a seventh game unbeaten, with their aggregate score over that period 23-6.
Cameron John got them on their way here, scoring three minutes in when he poked in from close range after a ball in from Malachi Fagan-Walcott.
And Dipo Akinyemi confirmed the win a minute from time slotting in to leave City on course for 96 points for the season if they win their final game next weekend.