In Windows deployment, a CAB (.cab) file for .NET Framework 3.5 is the standard format for offline installation
when an internet connection is unavailable or restricted. In modern versions of Windows (10, 11, and Server), the .NET Framework 3.5 binaries are not included in the default system image to save space, but are instead provided as a "Feature on Demand" (FoD) via these cabinet files. Microsoft Learn Key Cabinet Files
Depending on your platform, you will typically use one of the following CAB files found on Windows installation media (usually in the \sources\sxs Spiceworks Community Standard Windows (Desktop/Server):
microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab Windows Mobile/CE: Specialized files like NETCFv35.wm.armv4i.cab NETCFv35.wce.armv4.cab are used for the Compact Framework. Deployment Methods
To install .NET 3.5 using a CAB file, you must use command-line tools with administrative privileges. 1. Deployment Image Servicing and Management (DISM) cab file for .net framework 3.5
This is the most common method for both live systems and offline images. Microsoft Learn
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:
: Prevents DISM from trying to download files from Windows Update.
: Specifies the directory containing the CAB file (usually the folder from an ISO). Microsoft Learn 2. Windows PowerShell In Windows deployment, a CAB (
Now that you have the .cab file locally, you can use the Deployment Image Servicing and Management (DISM) tool to install it.
Open Command Prompt as Administrator.
Run the following command (update the path to where you saved your CAB file):
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:"C:\DotNet35"
Restart your computer if prompted.
If the CAB file is not automatically detected, specify it directly:
dism /online /add-package /packagepath:C:\temp\microsoft-windows-netfx3-ondemand-package.cab
This is the standard method for enabling the feature using a local CAB source.
Syntax:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:"Path_to_CAB"
Example (using installation media):
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:"D:\sources\sxs"
/Online: Targets the running operating system./LimitAccess: Prevents DISM from contacting Windows Update./Source: Points to the directory containing the CAB file.