网上很多遇到HTTP500时,会让您进行三步走,非常复杂,且容易出错,整理出下文,将其复制到记事本,命名为IIS500.bat,双击执行,解决HTTP500出错问题。
@echo off
echo 正在执行操作,请稍等......
regsvr32 %windir%/system32/vbscript.dll
msdtc -resetlog
net start msdtc
net user IUSR_%COMPUTERNAME% 111
net user IWAM_%COMPUTERNAME% 111
%SystemDrive%
cd %SystemDrive%\Inetpub\AdminScripts
cscript.exe adsutil.vbs set w3svc/wamuserpass 111
cscript.exe adsutil.vbs set w3svc/anonymoususerpass 111
cscript.exe synciwam.vbs -v
iisreset
%SystemDrive%
cd %SystemRoot%\System32\inetsrv
rundll32 wamreg.dll,CreateIISPackage
regsvr32 asptxn.dll
echo 执行完毕,按任意键关闭且自动打开http://localhost
pause
explorer.exe http://localhost
exit