With the score tied 3-3, van Riemsdyk broke down the middle and converted a pass from Tyler Bozak in the crease for the decisive goal.
Jonathan Bernier notched the victory with 30 saves.
David Desharnias, Brendan Gallagher and Brian Gionta each scored for the Canadiens.
Carey Price recorded 25 saves.
Millions of Getty images now available for free via embed tool
Boston schools pull out free condoms over wrapping complaints