復制代碼 代碼如下: @echo off echo 正在執行操作,請稍等...... 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 rem 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