Derby County advanced to the fourth round of the FA Cup with a victory over Barnsley.
James Collins opened the scoring from the penalty spot after Matthew Wolfe handled the ball in the area, after Lewis Dobbin hit the bar with a first-half head.
Barkhuizen scored twice in the second half.
The defensive mix-up allowed Knight to finish the game.
At the halfway point of the season, the Rams are just one point and two places behind Derby in the League One play-off places.
Derby's only defeat in 15 games in all competitions was a penalty shoot out loss toLiverpool in the Carabao Cup, but they started strongly against a team who had a seven-game league run.
The two evenly-matched outfits didn't get many chances in the first half.
Jake Rooney - cousin of Wayne Rooney, England and Manchester United's all-time top goal scorer, who was Rams boss when the club was demoted amidst a period of financial turmoil at Pride Park last season - was one of just two Derby changes for the game.
David McGoldrick was replaced by James Collins because he was injured.
Goalkeeper Jack Walton was recalled for the Tykes, with his last appearance coming against Crewe in the previous round.
The defender was quick to threaten for the fast-starting visitors and forced Joe Wildsmith to make an excellent early save with a glancing near-post head from a corner.
In the 24th minute, Dobbin clipped the bar with Derby's first attempt of the game.
The Rams dominated the entire first half.
The ball broke kindly for Barkhuizen, who turned on edge of the area before beating the keeper with a powerful shot.
After a day of disappointment, a defensive error led to Derby's third.
While Nathaniel Mendez-Laing was first gifted the ball, the rebound found the forward again before he rolled a pass for Knight to slot home.