As much as I do appreciate Elon's takes on a lot of things and some of his approaches. I don't think he would work out well for a corporation the size of Microsoft.
Microsoft is almost more of a conglomerate than a singular software (and hardware) company. It would take a solid leader who also appoints appropriate corporate heads in each division.
The marching orders for Windows seems to be "monetize home users." They don't "sell" the OS anymore on practical terms for home use... it's more about trying to sell adjacent services, shove Edge with built in consumerware plugins and nickel and diming every possible corner to each out a dollar or two a year per user.