The HP TouchPad was the company’s primary showpiece during ISTE's ed-tech trade show in late June.

In a dramatic reshuffling, Hewlett-Packard Co. is discontinuing its tablet computer and smart-phone products and might sell or spin off its PC division.

The surprise move comes a year after HP purchased mobile device maker Palm Inc. for $1.2 billion—and just seven weeks after HP touted its new TouchPad tablet as a competitor to Apple’s iPad at the nation’s largest ed-tech industry trade show.

HP’s Aug. 18 announcement is one of the most striking makeovers in the company’s 72-year history and signals new CEO Leo Apotheker’s most transparent move to date to make HP look more like longtime rival IBM Corp.

A decade ago, HP emerged from a bitter fight to spend more than $24 billion on Compaq Computer, setting the stage for HP to become the world’s No. 1 maker of personal computers. Now, three CEOs later, HP is changing course—hard.

The PC division is HP’s biggest revenue generator, but its least profitable division. The move has long been rumored, but just six months ago HP dismissed reports of the possibility as “irresponsible reporting” and said that PCs are “core to HP’s strategy for the connected world.”

The PC industry is under pressure from hot-selling smart phones and tablet computers, which have contributed to already weak consumer demand for PCs in the U.S. and Europe.

Even more striking is that HP plans to shutter its fledgling smart-phone and tablet business just a little more than a year after spending $1.2 billion on smart-phone maker Palm, which gave HP the webOS software that has been praised by critics but largely been ignored by the marketplace. While iPads, iPhones, and devices running Google’s Android software have been hot sellers, HP devices largely have languished.

HP thought it could turn that around with its HP TouchPad tablet, introduced in February and available starting last month. The TouchPad had security and manageability from the cloud—it pulled applications down from the web based on the user’s profile, rather than having apps reside on the device itself. The HP TouchPad was the company’s primary showpiece during the International Society for Technology in Education’s ed-tech trade show in late June.