Win10 DISM Offline Installation of .NET Framework
DISM (Deployment Image Servicing and Management) is used to install, uninstall, configure, and update features and packages in offline Windows(R) images and offline Windows Preinstallation Environment (Windows PE) images.
To install .NET Framework, the location of the Windows system installation disk is E: drive.
Dism /Online /Enable-Feature /FeatureName /Source:E:\sources\sxs
Other uses
- Scan the image to check for any corruption (when the image is corrupted, the computer may encounter various issues, such as inability to update the system).
Dism /Online /Cleanup-Image /ScanHealth
- Finally, repair the system image files.
Dism /Online /Cleanup-Image /RestoreHealth
To repair the image using a local source, it can be a Windows installation disc or a virtual drive loaded with an ISO file.
Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows /LimitAccess
In the PE environment, the ImageFile method can also be used by directly using a Windows image format file.
Dism /Apply-Image /ImageFile:X.wim /Index:1 /ApplyDir:C:
Reference: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/what-is-dism