Installing IIS 6.0 After the Operating System
Applies To: Windows Server 2003, Windows Server 2003 with SP1
To install IIS by using scripts after you have installed and set up Windows Server 2003, use the Sysocmgr.exe command-line utility with an unattended answer file that includes a [Components] section with the unattended setup parameters listed in Table B.1 and, optionally, an [InternetServer] section with the parameters listed in Table B.2.
Important
You must be a member of the Administrators group on the local computer to run scripts and executables. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run your script or executable as an administrator. At a command prompt, type runas /profile /User:MyMachine</STRONG>Administrator cmd to open a command window with administrator rights and then type cscript.exe ScriptName (include the script's full path and any parameters).
To install IIS 6.0 by using scripts after the operating system has been installed
On the Start menu, click Run.
In the Open box, type
cmd
Click OK.
At the command prompt, type
Sysocmgr.exe /i:sysoc.inf /u:%PathToUnattendFile%
and then press ENTER.
To view Sysocmgr.exe Help, type Sysocmgr.exe/?
at the command prompt.
and then press ENTER .