For the quarter ended June 30, Microsoft reported a loss of $492 million, or six cents a share, compared with a year-earlier profit of $5.87 billion, or 69 cents a share.