I don't think MS is king at marketing at all. They just happen to have two old huge cash cows with Windows and Office, otherwise they would already be out of business with the money they wasted in years.
If MS is so good at marketing, then why did Vista flop completely ? Or why didn't they manage to sell their Zune ? Or why did Xbox 1 crash into the ground ?