Gasper Kroselj made 32 saves for Slovenia (2-0-0-0, six points). Sabahudin Kovacevic gave Slovenia a 1-0 lead 4:18 into the second period, and Ales Music and Jan Urbas scored in the third period.
Slovenia made its first trip to the Winter Olympics in 2014.
Denmark goaltender Frederik Andersen (Toronto Maple Leafs) left the game with 4:21 remaining in the third period after a collision with teammate Oliver Bjorkstrand. He sustained an upper-body injury, and the Maple Leafs said he will fly to Toronto to be examined by team officials.
Belarus 5, Poland 3 - The home team spotted Poland a two-goal lead less than nine minutes into the game before scoring five unanswered goals.
Andrei Stepanov had a goal and an assist when Belarus scored four goals in the final 6:09 of the first period to take a 4-2 lead. Andrei Kostitsyn scored late in the second period for Belarus (2-0-0-0, six points), which plays Slovenia on Sunday.
Poland plays Denmark (0-0-0-2, 0 points) on Sunday in a game between two winless teams.
Group E
Germany 6, Austria 0 -- Germany exacted some revenge by rolling over Austria in their game at Riga, Latvia.
Goaltender Philipp Grubauer (Washington Capitals) made 25 saves, including one on a penalty shot by Thomas Raffl, for his second shutout in two days. Leon Draisaitl (Edmonton Oilers) was the last of six goal-scorers for Germany (2-0-0-0).
Austria (0-0-0-2, 0 points), which defeated Germany to earn a spot at the 2014 Sochi Olympics, has been outscored 14-1 in its two losses.