当我运行下面的脚本来检索日志文件时,如果我运行get-eventlog,get-winevent“message”字段为空,但有数据。任何想法为什么? #has message data
Get-Eventlog -LogName application -Newest 10
#date 10 days ago
$EventStartDate = get-date("10 May 2012
我正在构建一个powershell函数,以便我可以查询多台计算机的事件日志。我复制了下面的代码,我需要帮助。如果我不发送eventID,我希望脚本找到所有事件ID,我如何实现这一点? #this would be the parameter part of the script
[String]$ComputerName = $env:COMPUTERNAME#Current computer