다음을 통해 공유


Installing IIS 6.0 with the Operating System

Applies To: Windows Server 2003, Windows Server 2003 with SP1

Use the Winnt32.exe command-line utility to install IIS 6.0 by using 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 use the Winnt32.exe command-line utility

  1. At a command prompt, type:

    winnt32 /unattend:AnsweFile /s:InstallSource
    

    where AnswerFile is a file that contains answers to questions that should be automated during installation, and InstallSource is the location of the Windows 2003 installation files.

To use an x86-based computer to view the command options available for Winnt32.exe

  1. On a computer running Microsoft® Windows®  95, Windows®  98, Windows® Millennium Edition, Microsoft® Windows NT® , Windows 2000, Windows XP, or Windows Server 2003 operating systems, insert the Setup CD for Windows Server 2003 in the CD-ROM drive.

  2. On the Start menu, click Run.

  3. In the Open box, type

    cmd
    
  4. Click OK.

  5. At the command prompt, change to the CD-ROM drive, change to the I386 directory, type

    winnt32 /?
    

    and then press ENTER.

To use an Itanium-based computer to view the command options available for Winnt32.exe

  1. On an Itanium-based computer running Windows XP 64-Bit Edition; the 64-bit version of Windows Server 2003, Enterprise Edition; or the 64-bit version of Windows Server 2003, Datacenter Edition, insert the Setup CD for the 64-bit version of the product into the CD-ROM drive.

  2. On the Start menu, click Run.

  3. In the Open box, type

    cmd
    
  4. Click OK.

  5. At the command prompt, change to the CD-ROM drive, change to the IA64 directory, type

    winnt32 /?
    

    and then press ENTER.