Here is a quick way of installing the .Net Framework 3.5 on various computers running Windows Server 2012 using the command prompt. We’re assuming psexec is installed on the computer from where you are running this script.
Here is what I run in my case (make sure you run this as a user who is admin at the target machines):
psexec -s \\computer1,computer2 DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:\\network-share-that-contains-the-sources-directory
The parameters \\computer1,computer2 refer to the Windows Server machines you want to target. After specifying which computers to target, what follows is the command to install windows features, DISM. The command for installing
In my my case, the command looks like so:
psexec \pac0920,pac0922,pac0924,pac0926,pac0928 DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:\pac0619SCVMM2012-LibraryisoWindowsServer2012RTMBitssourcessxs