Installing Windows Components from the Command Line in W2003


Build the configuration file for the components (i.e. HardwareManagement.inf)
[Version]
Signature = "$Windows NT$"
[Components]
HWMGMT =on


Act on the configuration file (i.e. HardwareManagement.inf)
%windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:
HardwareManagement.inf


Make Windows installation source files available:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
“SourcePath”=”c:\\windows\\i386″
“Installation Sources”= … (REG_MULTI_SZ value)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
“SourcePath”=”c:\\windows\\i386″


Notes:

  • Launch "Windows Components Wizard": %windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf
  • Config file: set components '=on' will install a component, '=off' will remove a component
  • [Components] and [NetOptionalComponents] cover most common components




Reference:

  • W2003_RD_CD2\Docs\Ref.chm\Sysocmgr.ini



Credit: 

  • http://itknowledgeexchange.techtarget.com/network-administrator/install-windows-components-from-command-line/
  • http://www.windowsnetworking.com/kbase/WindowsTips/Windows2003/AdminTips/Admin/Installingcomponentsfromthecommandline.html


Comments