I used this command dism /online /Add-Package /PackagePath:C:\Sources\SxS\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab and then followed by dism /online /enable-feature /featurename:NetFX3 /All /Source:C:\sources\sxs /LimitAccess as suggested by this article: https://www.winhelponline.com/blog/error-0x80070490-net-framework-3-5/.
Thank you