Most of Microsoft's problems were leadership. Not intentional (Im assuming, but I cant imagine that's a wrong assumption) but they just steered the ship in a bad direction for too long and now are playing catchup/pivot/refocus. A company that large with that much reach will be around for a long long long time.