Hewlett-Packard Co. shares fell to their lowest level in six years as Wall Street's confidence in the Silicon Valley giant was shaken by management's dramatic restructuring plans and the company again reducing its financial outlook.

H-P announced Thursday that it will get out of computers and mobile devices--a seemingly sharp reversal from management's previous comments--and make a big bet on software, with a deal seen as pricey by some.

The...