Microsoft stopped openly attacking open source at a time when open source was clearly winning:
- most servers were running linux
- most phones and tablets were running android
- people were buying tablets instead of desktops
- Google was openly promoting open source through GSOC
- large corporations were regularly releasing their tools as open source
Most importantly, developers openly hated Microsoft for holding the industry back (remember IE6?).
So they did what any good corporations does - they went along with the winning side.
And now they they have positive emotional connotations in devs' minds, or at least organizational buy-in again, they can do what corporations do best - making money by abusing their position with barely any competition.
---
The lesson here are: - Corporations should simply not have this amount of power. - Corporations are amoral, they don't have values, views or beliefs. They are systems designed for optimizing goals. You can never _trust_ a corporation - not because they are untrustworthy but because trust is a human-to-human level concept, it does not have any meaning in human-to-system interaction.