我知道你可以使用 powershell 将注册表等设置为驱动器号。powershell中还有其他对象以这种方式处理其他对象。有谁知道有什么cmd-let可以以这种方式访问​​IIS日志吗?

有帮助吗?

解决方案

查看这篇博文:

IIS 7.0 Powershell 支持

其他提示

一个快速而肮脏的脚本会起作用吗?W3c 日志文件头的第三行(由 IIS 默认保存)有一个#Header 行...将以下内容另存为 Import-W3CLog.ps1

param ($logfile)
import-csv -Delimiter " " -Header "date","time","s-ip","cs-method","cs-uri-stem","cs-uri-query","s-port","cs-username","c-ip","csUser-Agent","sc-status","sc-substatus","sc-win32-status","time-taken" -path $logfile | where { !($_.Date.StartsWith('#')) }
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top