Wes Fletcher netted a second-half brace against Dagenham to help York City secure back-to-back League Two wins for the first time since October.
Abu Ogogo twice went close to nodding the Daggers in front before Ryan Bowman put the hosts ahead with a well placed shot past Chris Lewington.
Fletcher doubled the advantage with a looping cross then found the bottom corner with his 10th goal this term.
Rhys Murphy pounced on a mistake to pull a goal back, but it was too late.
VIEW FROM THE DRESSING ROOM
York City manager Nigel Worthington told BBC Radio York:
"Well performance-wise we're not a million miles from where we were five days ago.
"Results-wise, wins give you a big change in as far as the points and the league positions are concerned.
"But 28 points isn't going to win you anything or get you anywhere so it's got to be the full focus and concentration.
"There's plenty of work left to do to get where we would like to get to."
York City 24 Ingham 02 Oyebanjo Booked 03 Davies 14 Montrose 05 McGurk 15 Lowe 12 Carson (Puri - 77' ) 18 Platt 09 Fletcher 19 Bowman 07 Coulson (Chambers - 85' ) Substitutes 10 Chambers 16 Fyfield 17 McDonald 20 Allan 27 Brobbel 28 Puri 29 Whitehouse Dagenham & Redbridge 01 Lewington 18 Hoyte 03 Ilesanmi 02 Wilkinson (Edgar - 62' ) 04 Doe 05 Saah 08 Ogogo 17 Howell 09 Murphy Booked 41 Hines Booked 07 Elito (Obafemi - 76' ) Substitutes 10 Scott 11 Obafemi 14 Dickson 19 Edgar 20 Shields 26 Connors 31 Anderson
Ref: Gary Sutton