Microsoft shares climbed 4% on Monday, the day before the opening bell, as the company said it would spend $2.5 billion on a new computer, the Windows 8 operating system.
The company said in a statement that the investment is aimed at supporting its customers and is expected to take place by the end of the year.
Shares rose as much as 7% to $46.25.
The shares rose after Microsoft reported better-than-expected revenue in the quarter ended March 31, the third quarter of 2016.
Analysts had expected a loss.
“Windows 8 will continue to play a critical role in Microsoft’s growth strategy and help build upon the company’s current product offerings,” CEO Satya Nadella said in the statement.
“The new Windows 8 system will support the next generation of PCs and create a platform that Microsoft can sell across all Windows 8 devices.
We look forward to building on the momentum created by Windows 8 to deliver a world-class operating system that can help deliver the future of computing.”
Windows 8 was launched last year and is widely used across Microsoft’s businesses and is the first version of the company that is designed to run on ARM chips.
Microsoft is one of a handful of companies that have developed its own version of Windows that can run on computers, and is focused on developing its own OS for mobile devices.
Microsoft has spent nearly $2 billion to date to develop Windows 8.
Windows 8 has gained traction, with a majority of the Windows users upgrading to it.
The software maker said the new PC will feature a new touch-screen version of its popular Outlook application, which has become a popular messaging application.
The firm has said that Outlook.com will remain a part of the operating system, but it said that users will be able to customize the application with their own contacts, calendars and other features.
Microsoft said it will add new features and add new apps, but the company also said that Windows 8 will remain free for users who want to run it on their existing devices.
Windows 7 and Windows 8 are available for download from the company.