How to Add or Remove Windows Components with Sysocmgr.exe (222444)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Datacenter Server

This article was previously published under Q222444

SUMMARY

This article describes how to add or remove Windows components with the Sysocmgr.exe tool.

MORE INFORMATION

You can use the Sysocmgr.exe tool at a command prompt to add or remove Windows components. You can use the following command-line switches with Sysocmgr.exe:
  • /i:path to Sysoc.inf file, where path to Sysoc.inf file is the full path to the Sysoc.inf file, for example:

    c:\windows\inf\sysoc.inf
    						
  • /u:path to answer file, where path to answer file is the full path to the answer file that contains a list of items to add or remove.
  • /q - runs Sysocmgr.exe in quiet mode (without display pages)
  • /r - suppresses reboot (if needed)
NOTE: This procedure does not work and is unsupported with Microsoft Fax Service, Windows Media Player, COM+, and Distributed Transaction Coordinator. These are core components that are not removable.

The answer file can be any Windows answer file and only parses the [Components] and [NetOptionalComponents] sections. An example file is shown below:
[Components]
Netoc = on
Reminst = on
Paint = off
pinball = off
Solitaire = off

[NetOptionalComponents]
lpdsvc = 1
SimpTcp = 1
wins = 1
				
To start the installation or uninstallation of these components using Sysocmgr.exe, type the following command (file saved as c:\ocm.txt):

sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\ocm.txt

For more information, please refer to the unattended documentation.

Modification Type:MajorLast Reviewed:4/27/2004
Keywords:kbhowto KB222444