Help and Support

How to add or remove Windows Components by using Sysocmgr.exe

Article ID:222444
Last Review:October 11, 2007
Revision:5.3
This article was previously published under Q222444

SUMMARY

This article describes how to add or remove Windows components by using 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. Additionally, in Windows 2000, this procedure does not work with the Microsoft Fax Service. This is because the Microsoft Fax Service is not an individual component in Windows 2000. Instead, the Microsoft Fax Service is a subcomponent of a larger group in Windows 2000.

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.

APPLIES TO
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional Edition
Microsoft Windows 2000 Datacenter Server
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional
Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
Microsoft Windows Server 2003, Standard Edition (32-bit x86)
Microsoft Windows Server 2003, Web Edition
Microsoft Windows Server 2003 Service Pack 1
Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
Microsoft Windows Server 2003, Datacenter x64 Edition
Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
Microsoft Windows Server 2003, Enterprise x64 Edition
Microsoft Windows Server 2003, Standard x64 Edition

Back to the top

Keywords: 
kbhowto KB222444

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.