Solving Installation Problems with .NET 3.5 on Windows Server 2012 R2

While newer versions of Windows Server (2022/2025) have improved, installing .NET 3.5 still frequently fails because the payload is not part of the local Side-by-Side (SxS) store. The easiest way to solve this is to point the installer to the original installation media.

2026 Update: This method remains the gold standard for Windows Server 2022 and 2025. If you are in an air-gapped or WSUS-managed environment, the GUI will fail unless you provide this alternate path.

Option 1: The Fast Way (DISM)

Mount your Windows Server ISO (usually as drive D: or E:) and run this from an elevated Command Prompt. This forces the server to use the media instead of trying to reach Windows Update.

dism /online /enable-feature /featurename:NetFx3 /all /Source:D:\sources\sxs /LimitAccess

Option 2: The PowerShell Way

If you prefer PowerShell, use the following command. The -Source parameter is key here.

Install-WindowsFeature -Name NET-Framework-Core -Source D:\sources\sxs

Option 3: No Installation Media?

If you don't have the ISO, you can temporarily bypass WSUS to grab the files directly from Microsoft by changing a Group Policy setting:

  • Run gpedit.msc and go to: Computer Configuration > Administrative Templates > System.
  • Enable: "Specify settings for optional component installation and component repair".
  • Check the box: "Download repair content and optional features directly from Windows Update...".

Tip: If you are using a WIM file instead of a mounted drive, you can use the source format WIM:C:\install.wim:2 where "2" is the index of your server edition.

Author’s Note: This article reflects my personal professional experience and opinions. While my insights are informed by my professional history, these views are my own and do not represent the official position of my former employer.

About the Author: Jacob Marks is an engineering leader with over 20 years of experience, including a decade at Amazon Web Services (AWS) where he led teams in EC2 Core Platform and the development of the AWS Payment Cryptography service.

Labels

.NET .NET 10 .NET 3.5 Active Directory AD DS Adoption AI AI coding AI Ethics AI Hype Alerts Amazon Cognito Amazon DLM Amazon Q Anthropic AppDomain Architecture Artificial Intelligence Asia Pacific Sydney ASP.net ASPxGridView Audit Readiness Auto Recovery Automation AWS AWS Certified AWS Lambda AWS Payment Cryptography AWS SDK AWS Security Specialty Azure Azure DevOps Server Backup BIG-IP C# Career Growth Cartes Bancaires CB Certificate Bundle Certification Claude Cloud Cloud Certification Cloud Hosting Cloud Security CloudWatch CLR Content Query Cost Optimization Credentials CyberChef Database Defense Industry Deloitte Developer Tools Developers DevEx DevExpress DevOps DISA Disk Space DISM Distributed Systems DoD DoD CC SRG DUKPT EBS EC2 Engineering Engineering Leadership Engineering Management EnPasFltV2 Enterprise Event Receiver Exam F5 Federal IT FedRAMP Fintech FISMA GAC Generative AI GitHub gMSA GovCloud Government Compliance GridView Hardware Security Modules HSM IAM Identity Management IIS Infra Infrastructure as Code IT Tools Jacob Marks JavaScript jQuery Lambda Leadership Linqpad LLM lsass.exe LTM Memory Optimization Mentorship Microsoft Migration Multi-Region Keys NACL Native AOT Network Architecture Networking NIST ODBC Open Source Payment Cryptography Payments PCI Compliance Performance Platform Platform Architecture Power Tools PowerShell Python re:Invent Reachability Analyzer Redshift Relationships List Replace Root Volume SAA-C00 SAP-C00 Security Security Group Serverless SES SharePoint SharePoint 2010 Site Reliability SMTP Snapshot Software Engineering Solutions Architect Solutions Architect Professional SP 2007 SPAWAR SSL STIG Storage Strategy Sydney SysAdmin Team Foundation Server Team Utilities Tech Industry Technical Depth Technology TFS Tools Troubleshooting Upgrade Visual Studio VPC VPC Flow Logs Web Development WebPart WinDirStat Windows Server Windows Server 2025 WinForms