Jaromir Jagr had an assist and also scored in the shootout for the Rangers, who have won nine of their last 13 games.
New York tied the game when Jagr forced a turnover and Pock scored from the left circle to beat Joey MacDonald to the stick side.
Marc Savard scored Boston's lone goal and MacDonald stopped 35 shots for the Bruins, who have lost seven of their last nine games.
Savard scored on a rebound of Shean Donovan's missed shot with 11:54 left in the second period.
The Bruins had a chance to win in overtime after Petr Prucha was penalized with 1:31 to go for tripping. Lundqvist stopped the penalty shot and the game went to a shootout.