Run this command:\textdism /online /enable-feature /featurename:NetFX3 /all /Source:D:\sources\sxs /LimitAccess /Source : Points to the folder containing the .cab file.

Ensure the .cab file comes from the exact same version of Windows you are running.

Wait for the process to complete. It will show a progress bar. When done, you’ll see: “The operation completed successfully.”