Q: How do I set the default location for Windows Server 2012 download files when a component has been removed?

Set the Windows Server 2012 default location for installation files.

John Savill

June 11, 2012

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A:In my FAQ "Is it possible to remove components in Windows Server 2012?" I showed how roles and features could be removed from an OS, reducing the diskfootprint.

If a role or feature is enabled that was removed from the OS, then by default Windows Update will be used to pull down missing files.

However,it's possible to specify a location such as a network share that contains the Windows Server 2012 (formerly code-named Windows Server 8) installation files(from the WIM file). To set the default location, perform the following:

  1. Start the registry editor (regedit.exe).

  2. Move to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionpoliciesServicing.

  3. Create a new String value called LocalSourcePath.

  4. Set the location of the share with the Windows Server 2012 installation files.

  5. Click OK and close the registry editor.

It is also possible to pass a path to a specific location when roles and features are added, by using the -Source for WindowsPowerShell, or use /source: with DISM. For example, respectively:

Install-WindowsFeature  -Source Windowswinsxs
Dism /online /enable-feature /featurename: /source:Windowswinsxs

To see more answers about Windows Server 2012, Windows 8, virtualization, and all things IT,  click over to our FAQs page.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like