Microsoft reported earnings excluding items that beat analysts' expectations though it posted a net loss — the first since it went public in 1986 — and delivered revenue that fell short of expectations.

Microsoft

The loss was attributed to a previously announced charge for writing down the value of its ailing online unit.