Microsoft's new Xbox chief is looking to push the gaming unit's margin back in line with its rivals by next year and beat them on profitability by mid-2030.

"We will not live on past successes or be trapped by past failures," CEO Asha Sharma wrote in a Thursday message to staff members that CNBC viewed. "We will learn from both and put our energy into creating what players will love for decades."

Sharma, a former Instacart and Meta executive, replaced Phil Spencer as Xbox CEO in February. She has since appointed new leaders, lowered Game Pass subscription prices and announced layoffs and divestitures of four development studios. Sharma has put more emphasis on exclusive titles for the Xbox console, delighting gamers who have seen the subsidiary bring franchises to Sony's PlayStation.

On Wednesday, Xbox turned in a 10% quarterly revenue decline — the most sluggish performance since 2022 — even as its parent surpassed consensus in cloud infrastructure and productivity software. Microsoft stock spiked almost 16% on Thursday in its strongest session since 2008.

Sharma and Matt Booty, Xbox's chief content officer, said last month that they anticipated a 3% internal margin. Sony reported a 9.9% operating margin from game and network services in the latest fiscal year, while Nintendo's approached 16%.

The Xbox Series X and Series S consoles have lagged behind the Nintendo Switch and Sony PlayStation 5 in terms of shipments.

Sharma wrote in her Thursday memo that Xbox will make every function and studio responsible for the gaming group getting back to growth in terms of number of players and revenue in the new fiscal year that ends in June 2027.

"We will build long-term plans for our biggest franchises across film, television, consumer products, sponsorship, live experiences, and form new partnerships globally, including China," she wrote.

Sharma also said she wants to see Xbox gain share in casual games, partly through Activision Blizzard's King, which puts out "Candy Crush" saga games.

Microsoft placed a giant bet on gaming with the $75.4 billion acquisition of "Call of Duty" publisher Activision Blizzard in 2023. The deal boosted revenue, but the subsidiary became over-extended. Consumers got to try new high-value "Call of Duty" releases for short periods through Game Pass for a small fee and leave without paying full price. Game Pass now excludes the first-person shooter titles.

Microsoft CEO Satya Nadella told analysts on the software maker's Wednesday earnings call that in gaming, the company is "making the necessary decisions required across our content portfolio, platform and operations to reset the business for long-term growth."

Sharma told employees in her note that the company would "invest in Minecraft more than ever before, strengthening the experiences players love while expanding the tools that help people create, share, build audiences, and earn."

In 2014, Microsoft acquired Mojang, the developer of block-building game Minecraft, for $2.5 billion. It surpassed Tetris as the world's best-selling game five years later.

Sharma wrote that revenue growth must speed up in the 2028 and 2029 fiscal years.

"By FY30, our ambition is to be halfway to our long-term daily-player goal with sustained double-digit growth in players and engagement and industry leading margins," she wrote.