Installing Windows Features without Internet

To set the source file path for the sxs folder, complete these steps:

  1. Ensure you have the correct installation media mounted or available on your machine (e.g. insert the installation media CD or mount the ISO)
  2. Navigate to <installation_media>Sources
  3. Copy the sxs folder from the Sources directory to any location on your local machine. In this example we are copying to C:Sourcessxs. (Note: You can copy this to a network location so that multiple machines get their source files from a single source if required)
  4. Launch Registry Editor (Start >> Run >> regedit)
  5. Navigate to HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesServicing
  6. In this location, create the following registry entry: “LocalSourcePath”=”C:Sourcessxs” (Note: If you copied the sxs folder to another location then set this as the value)
  7. Close the registry and re-install the Windows Feature using the GUI (i.e. either Control Panel >> Programs and Features or Server Manager)
原文地址:https://www.cnblogs.com/mqingqing123/p/9322245.html