Enable or Disable Windows Features Online
To enable or to disable Windows features in an online Windows image, create an unattended installation answer file in Windows System Image Manager (Windows SIM) and use it as input for Package Manager.
You must install the latest version of the Windows OEM Preinstallation Kit (Windows OPK), which contains all the tools required, including Windows SIM.
To Enable or Disable Windows Features Online
In Windows SIM, open an existing catalog by right-clicking Select a Windows Image or Catalog file and specifying the catalog file type (.clg) in the drop down list, or create a new catalog by clicking Create Catalog on the Tools menu.
Expand the catalog in the Windows Image pane, and then expand Packages.
Expand Foundation, and then right-click Microsoft-Windows-Foundation-Package.
Click Add to Answer File.
Click Enabled or Disabled next to the features that you intend to enable or disable. Click the arrow to select the opposite.
You might need to expand an item to see all its children. The parent must be enabled if any of its children are enabled.
Click Tools on the main menu, and click Validate Answer File.
Correct any errors that appear in the Messages pane, and save the answer file.
At a command prompt, run the following command.
start /w pkgmgr /n:<path to answer file>
When Package Manager returns, type the following command and look at the return code.
|For details about Package Manager command-line options, see the Package Manager Command-Line Options topic.|