我试图通过 powershell 找到安全事件日志中最旧的保留事件。
使用以下命令:(Get-EventLog Security | Sort-Object -Property Time -Descending)
(Get-EventLog Security | Sort-Object -Property Time -Descending)
这将返回一个根本没有排序的列表。我在这里做错了什么?
windows powershell get-eventlog
get-eventlog ×1
powershell ×1
windows ×1