Installing components from the command line

by Mitch Tulloch [Published on 19 July 2011 / Last Updated on 9 July 2010]

How to install Windows Server 2003 R2 operating system components from the command line.

You can use the sysocmgr.exe command-line utility to install specific Windows Server 2003 R2 operating system components from the command line. For example, let's say you want to install only the Hardware Management subcomponent of the Managing and Monitoring Tools component. Here's how you could install this component from the command line:

Use Notepad to create a textfile named R2comp.inf that contains the following:

[Version]
Signature = "$Windows NT$"
[Components]
;Hardware Management
HWMGMT =on

Now type the following command at a command prompt:

sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:r2comp.inf

If you have feedback concerning this tip, please email me. And be sure to check out my website!

See Also

Featured Links