Easy to fix, uninstall Microsoft Server and Windows, and thrn replace with Unix/MacOS and or Linux ....
To be honest its time to start sueing the living hell out of Microsoft. These vulnerabilities have been around for over 10 years and they have done nothing to block their ability to f’up things. First $100 billion lawsuit will magically produce a patch that prevents this.