基本指令:Sysocmgr.exe /i:sysoc.inf /u:c:/iis.txt
c:/iis.txt是IIS要安裝的元件清單
[Components]
iis_common = ON /OFF
iis_www = ON /OFF
iis_asp = ON /OFF
iis_inetmgr = ON /OFF
aspnet= ON /OFF
[InternetServer]
SvcManualStart = www 和/或 ftp
PathFTPRoot = FTProot 的路徑
PathWWWRoot = WWWroot 的路徑
ApplicationDependency = ApplicationName, GroupID, GroupID
ExtensionFile = 通路權限、路徑、可删除的 UI、短說明、長說明
DisableWebServiceOnUpgrade = True/False;該參數的預設值是 true。為了減少攻擊風險,IIS 在更新之後處于關閉狀态。可使用該無人參與安裝參數使 IIS 在更新之後處于打開狀态。
包括IIS元件在内的所有元件清單:
Mplay
Rec
Vol
fullscreenconsole
fax
wms_admin_mmc
wms_svrtyplib
wbem
dtc
com
complusnetwork
iis_common:CommonFiles - 安裝需要 IIS 程式檔案
iis_inetmgr:Internet 資訊服務管理單元: MMC 中安裝 IIS 管理界面
netfx
iis_www:網際網路服務
wms_admin_asp
wms_server
wms_isapi
rootautoupdate
autoupdate
licenseserver
certsrv_client
certsrv_server
authman
cluster
ieaccess
iehardenadmin
iehardenuser
msmq_core
msmq_localstorage
msmq_adintegrated
msmq_mqdsservice
msmq_triggersservice
msmq_httpsupport
msmq_routingsupport
bitsserverextensionsmanager:安裝 BITS 管理擴充中 Microsoft 管理控制台 (MMC)
bitsserverextensionsisapi:安裝 IIS ISAPI 以允許上載背景智能傳輸服務 (BITS)
sakit_web
iis_asp
iis_internetdataconnector
iis_serversideincludes
iis_webdav
tswebclient:遠端桌面 Web 連接配接
iis_ftp:FTP 服務
iis_smtp:簡單郵件傳輸協定 (SMTP) 服務
iis_nntp:網絡新聞傳輸協定 (NNTP) 服務
inetprint:Internet 列印
fp_extensions:FrontPage2002ServerExtensions
appsrv_console
dtcnetwork
aspnet Asp.Net
oeaccess
mswordpad
calc
charmap
clipbook
deskpaper
mousepoint
paint
templates
imegen
chat
hypertrm
accessopt
rstorage
indexsrv_system
uddiweb
uddidatabase
uddiadmin
terminalserver
wbemmsi
snmp
wbemsnmp
netmontools
netcmak
netcps
wins
dns
dhcpserver
simptcp
ias
netcis
macprint
macsrv
lpdsvc
reminst
pop3service
pop3admin
display
ntcomponents
WMPOCM
k
scw
computeserver
netrqs
storageserver
注意:
Windows 總是尋找伺服器最初安裝該媒體。 如果從 CD, 安裝伺服器無人參與安裝提示對于 Windows CD。 如果要運作無人參與安裝并使用媒體, 并存儲在網絡共享, 必須更改為以下系統資料庫子項中 ServicePackSourcePath 子項 SourcePath 子項和值:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Setup
更改用于 ServicePackSourcePath 子項 SourcePath 子項和值對合适網絡共享。 路徑必須包含 i 386 檔案夾。
下面是一個完整的IIS安裝檔案:IISSetup.bat
第一步:更改windows安裝檔案位置
第二步:生成安裝選項檔案
第三步:開始安裝
echo "更改windows安裝檔案的路徑"
echo Windows Registry Editor Version 5.00 > c:/setupreg.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Setup]>> c:/setupreg.reg
echo "ServicePackSourcePath"="D://Win2003//" >> c:/setupreg.reg
echo "SourcePath"="D://Win2003//" >> c:/setupreg.reg
regedit /S c:/setupreg.reg
del c:/setupreg.reg echo "生成IIS無人值守安裝選項檔案"
echo [Components] > c:/iis.txt
echo iis_common = ON >> c:/iis.txt
echo iis_www = ON >> c:/iis.txt
echo iis_asp = ON >> c:/iis.txt
echo iis_inetmgr = ON >> c:/iis.txt
echo aspnet= ON >> c:/iis.txt
Sysocmgr.exe /i:sysoc.inf /u:c:/iis.txt
del c:/iis.txt
echo IIS安裝完畢pause
<a href="http://support.microsoft.com/kb/222444">Sysocmgr.exe的用法</a>
判斷IIS是否安裝,可以從系統資料庫中查找:
1. HKEY_CLASSES_ROOT下判斷是否IIS 的com已經注冊
2. HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/SETUP/OC MANAGER/SUBCOMPONENTS下的相應元件(參考上文)的Key值是否是1.
判斷IIS的版本号:
HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/InetStp下的各key資訊