Hi @Jarvis2000
This error is usually caused by the previous failed installation of SQL Server that has not been completely uninstalled. You need to completely uninstall the previous failed installation first. You can check this link: https://stackoverflow.com/questions/63636622/sql-install-error-the-mof-compiler-could-not-connect-with-the-wmi-server.
Best regards,
Aniya