下载安装Log Parser

Download Log Parser 2.2 from Official Microsoft Download Center 安装后的默认位置C:\Program Files (x86)\Log Parser 2.2 提取站点ID为1111111的网站的日志到log.txt文件里命令,可供参考! logparser.exe "select * into log.txt from *.ibl where siteid=1111111" 提取当天站点所有访问日志 logparser.exe "select * into log.txt from *.ibl "

关闭日志

进入目录 cd C:\Inetpub\AdminScripts\ 运行: cscript.exe adsutil.vbs SET W3SVC/CentralBinaryLoggingEnabled false

开启日志

进入目录 cd C:\Inetpub\AdminScripts\ 运行: cscript.exe adsutil.vbs SET W3SVC/CentralBinaryLoggingEnabled true