HP Inc last night reported better than expected results in what its chief executive termed a "breakthrough" quarter as both its PC and printer businesses grew for the first time since 2010.
Revenue from personal systems business, which makes notebooks, desktops and workstations, jumped 9.6% to $7.66 billion in the second quarter ended April 30.
The business accounts for nearly two-thirds of the company's total sales.
Worldwide shipments of PCs rose for the first time in five years in the first quarter of 2017, with HP taking the top spot, according to research firm IDC.
The PC market has benefited as more businesses replace or upgrade their older systems as part of their refresh cycle.
The company's printer and copier business also posted its first rise in revenue since 2011, driven partly by strong demand for HP Sprocket, a handheld photo printer.
"It's been a long time since we've been able to say that," chief executive Don Weisler said on a post-earnings call, referring to the growth in its printing business.
Last year, HP bought Samsung Electronics' printer business for $1.05 billion to bolster the unit.
However, the company warned about a "little bit of uncertainty" in the PC business for the next two quarter as the company struggles to raise prices on products sold to corporate customers.
The company's net earnings from continuing operations fell to $559m, or 33 cents per share, in the latest quarter from $660m, or 38 cents per share, a year earlier.
Excluding items, the company earned 40 cents per share. Analysts were expecting adjusted earnings of 39 cents per share according to Thomson Reuters I/B/E/S.
Net revenue rose about 7% to $12.39 billion, topping analysts' estimate of $11.94 billion.
The company also forecast full-year adjusted profit of $1.59-$1.66 per share, while analysts are estimating $1.62 per share.
Shares of the Palo Alto, California-based company had risen over 28% so far this year.