NEW YORK — Vincent Trocheck had a goal and an assist and Jaroslav Halak stopped 33 shots as the New York Rangers beat the struggling Golden Knights 4-1 on Friday night.

Chris Kreider, Filip Chytil and Jimmy Vesey also scored for the Rangers, who are 8-2-3 in their last 13 games heading into their bye week and All-Star break. Braden Schneider had two assists and Halak won his fifth straight start.

“A great effort, we had a slow start,” the Rangers’ Barclay Goodrow said. “Jaro stood on his head for the whole game, especially the first period, kept us in it. Our game then got better as the game went along. It’s huge getting two points going into the break.”

Halak had 16 saves in the first period, eight in the second and nine in the third to get his first home win since signing with the Rangers in the offseason.

“Guys did a good job off the net and didn’t give them that much,” Halak said after improving to 6-6-1 overall. “I’m glad I got the start and I got the first win at home and now we can enjoy the break. … After the break, we have to come back and work even harder.”

Phil Kessel had a goal for the Knights and Adin Hill finished with 36 saves. The Golden Knights lost for the seventh time in nine games (2-6-1) while totaling 19 goals in that stretch — 10 coming in the two wins.

Golden Knights defenseman Shea Theodore (27) returned Friday after missing 20 games with an injury to his left leg. (AP Photo/Mary Altaffer)

“We’ve got to find a way to produce,” forward Jonathan Marchessault said. “I think we’ve got to play a little more inside. Sometimes (those) goals are not always the prettiest, but they still count. … I think we need a little bit more of a mentality of just to grind. Winning hurts sometimes and we’ve got to find a way.”

Chytil pushed the Rangers’ lead to 3-1 on a fortuitous deflection with 5:40 left in the third period as he lost the puck, stayed with it and on a second effort he knocked it across front of the net and in off Alex Pietrangelo’s skate. It was his 16th goal and fourth during a three-game scoring streak.

Vesey added an empty-netter with 1:24 left.

Trailing 2-0 after 20 minutes, the Knights scored at 4:57 of the second as Kessel banked a sharp-angle shot from behind the goal line off Halak. It was his ninth goal and the 408th of his career.

Halak made a sprawling save on Keegan Kolesar from the right side with 7:50 left in the middle period to preserve the Rangers’ lead.

“I saw him coming through the middle when i looked,” Halak said. “Lucky for me, I raised my hand and glove and I was able to make the save.”

Kreider gave the Rangers a 1-0 lead with 3:52 left in the first as he deflected a backhand pass from Trocheck off his knee and the puck trickled past Hill. It was Kreider’s 20th, reaching that mark for the eighth time in his career.

Trocheck made it 2-0 with 43 seconds left in the opening period as fired a shot from the right faceoff circle off a pass from behind the net by Goodrow. It was his 14th.