Link to home
Start Free TrialLog in
Avatar of attendabuilds
attendabuilds

asked on

IIS auto install

Is it possible to install IIS via a batch file or script
Avatar of AlfaLAN
AlfaLAN

I think so, but what do you want exactly? Unattended installation of IIS on a already installed/running computer?
Or fully unattended installation (and even configuration) together with an install of windows?

What version of IIS do you plan to use?
Avatar of attendabuilds

ASKER

AlfaLAN,

I would need to install it on a running server
Create an unattended install file and name it Iis.txt :
[Components]
iis_common = on
iis_inetmgr = on
iis_www = on
iis_ftp = on
iis_htmla = on

[InternetServer]
PathFTPRoot=D:\Inetpub\Ftproot
PathWWWRoot=D:\Inetpub\Wwwroot


And store it in the same place as your batchscript:
@ECHO OFF
ECHO Start installing MS IIS...
(shared point with installationfiles)\sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\iis.txt
ECHO Finished installing IIS.
END


sysocmgr.exe is the IIS's "setupprogram".

See also: http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q259/6/71.ASP&NoWebContent=1


It is also possible to configure the server through script. Want info on that one to?
ASKER CERTIFIED SOLUTION
Avatar of AlfaLAN
AlfaLAN

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial