You cannot blame Microsoft for the security problems we have now. The problems that are coming home to roost at the moment are based on a range of problems, but there is one central issue: security.
Until relatively recently, security was an afterthought - and it remains an afterthought for many IOT creators whose devices are subsequently hijacked. When the Internet was being designed, it was by nerds for nerds - nobody expected it to be so successful, or for there to be so many computers! Security was an afterthought, even when developing standards like the hyper text transfer protocol (HTTP) - it was only as an add-on that you could go with HTTPS. And there was a penalty for being secure; computers had to perform these complex calculations, and were very slow at doing this - again until relatively recently.
The user wanted things to work, and to be fast - they got what they wanted. Even in the development of the replacement of the current HTTP standard, people are still arguing that it should be insecure by default!
On the desktop, Microsoft designed an operating system for stand-alone computers - and then added network functionality. If you look back at those early versions of Windows, everything was open by default. Nobody had firewalls until Shields-Up came along - and then a while later Microsoft realised that this was a function that should be performed in the OS. And of course this was in the days before NAT routers - so your entire network was visible.
Then there's the idea of protecting the user from themselves, by having 'user' and 'admin' logins. Hands up if you access the Windows environment on your home machine with an account that does not have admin access. Congratulations if you fit in that group - you're a small minority. I tried it for a day or two - but tend to change my system so often that it drove me crazy (as Choice Community members can see from my posts here).
Hopefully Windows will continue to improve its security, which has already improved in leaps and bounds but remains well behind Unix/Linux/BSD. That said, can we trust any closed-source operating system? Can we trust our Intel chips not to have back doors for the NSA? Apart from the highly publicised Active Management Technology, or AMT, of course. (By the way, if you want to limit the power of your motherboard to 'phone home' using the AMT, just use an external ethernet connection - AMT bypassed.)
In other words, technology was historically insecure. We are now in an age that has started to wake up to the dangers of insecurity and is gradually patching the holes as they are discovered. At some point in the future it may even be possible to move to a fully secure Internet, but that is currently a pipe-dream that is delayed further because of the need for 'backward compatibility'.
Programmers are working towards 'mathematically provable' code - in which you can prove that your software is totally logically consistent and thus hopefully bug-free (don't ask me how).
So the future is secure. The past was insecure, but it didn't matter. The present is a mess. It's the story of human history.