復制代碼 代碼如下:
[Components]
iis_common = ON
iis_www = ON
iis_asp = ON
iis_inetmgr = ON
aspnet= ON
復制代碼 代碼如下:
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:/Win2003setupPath.reg
echo "SourcePath"="D://Win2003//" >> c:/Win2003setupPath.reg
regedit /S c:/Win2003setupPath.reg
del c:/Win2003setupPath.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
新聞熱點
疑難解答
圖片精選