Enabling dotnet 3.5 on Windows 10

I am having an extremely hard time getting dotnet 3.5 enabled using bigfix on windows 10 machines. The process is - download the dotnet file used for installation to a created folder on c: then execute the proper command:

 wait cmd /c "Dism /online /enable-feature /featurename:NetFX3 /All /Source:c:\software /LimitAccess"

The problem is, it doesn’t work. I can go to the machine and run the exact same command in an elevated cmd prompt window and it works flawlessly.

Anyone have any ideas as to what I am doing wrong?

You shouldn’t have to download anything since it should be able to get it from Windows Update. If not you can enable that.

You are saying you can put exactly this in the command prompt and it works?

cmd /c "Dism /online /enable-feature /featurename:NetFX3 /All /Source:c:\software /LimitAccess"

Try this:

wait cmd /c Dism /online /enable-feature /featurename:NetFX3 /All /Source:c:\software /LimitAccess

Or:

dos Dism /online /enable-feature /featurename:NetFX3 /All /Source:c:\software /LimitAccess

Also, you should probably add /norestart