标签: powershell reporting event-log
Is it possible to collect EventLog entries every hour and then save it into a single file in PowerShell?
答案 0 :(得分:1)
使用Get-EventLog cmdlet检索日志,使用Out-File cmdlet将其保存到文件,并使用New-ScheduledTask cmdlet安排脚本。
Get-EventLog
Out-File
New-ScheduledTask