复制代码 代码如下:
[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
新闻热点
疑难解答
图片精选