Ever had the need to script the installation or removal of Windows Components? As some of you might not know, there is a tool present on your Windows 2003 system which can perform this task.The tool is called : sysocmgr.exe (System stand-alone Optional Component Manager)
You can install or remove Windows components as follows:
Create a text file (e.g. c:\unattended.txt)
Put the component name in the file as follows, use On to install, use Off to uninstall:
[Components]
Componentname1=Off
Componentname2=On
Run the tool with the following command
sysocmgr.exe /i:%windir%\inf\sysoc.inf /U:c:\unattended.txt /r
The only difficult part is how you know the proper component name. Here are a few I know of:
AccessOpt=Off (Accessibility Wizard)
TerminalServer=On (Terminal Server)
MultiM=Off (Multimedia)
CommApps=Off (Communications)
Chat=Off (Chat)
msmsgs=On (Windows Messenger)
dtc=On (Distributed Transaction Coordinator)
com=On (COM+)
AutoUpdate=On (Windows Automatic Update)
IEHardenUser = Off (Internet Explorer Enhanced Security Configuration)
IEHardenAdmin = Off
Reminst = on (Remote Installation)
Paint = off (Microsoft Paint)
pinball = off (Microsoft Pinball)
Solitaire = off (Microsoft Solitaire)
MSWordPad=On (Microsoft Wordpad)
You can also use this method to install DNS unattended. Add the following to the unattended.txt:
[netoptionalcomponents]
DNS=1 (DNS Server)
For more info : http://support.microsoft.com/?kbid=222444





Don’t suppose you know what the “name” of the WDS and DHCP options are do you?
Cheers,
DAVE.
Post a comment