Enable or Disable Windows Features Offline
To enable or to disable Windows features in an offline 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 and Package Manager.
To Enable or Disable Windows Features Offline
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 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.
Mount the offline Windows image.
For details on how to mount an image, see the Mount and Modify an Image topic.
At a command prompt, run the following command.
start /w pkgmgr /o:"<boot drive>\;<path to Windows folder>" /n:<path to answer file>
When Package Manager returns, type the following command and look at the return code.
Commit changes and unmount the image.
For details, see the Mount and Modify an Image topic.
|For details about Package Manager command-line options, see the Package Manager Command-Line Options topic.|