Powershell指令操作Windows(Windows server)日志


    

1.Windows日志严重程度分类

有5种类型:
(1)Error:错误
(2)Warning:警告
(3)Information:信息
(4)SuccessAudit:审核成功
(5)FailureAudit:审核失败

PS C:\WINDOWS\system32> [enum]::GetNames([System.Diagnostics.EventLogEntryType])     
#获取系统日志分类
Error
Warning
Information
SuccessAudit
FailureAudit
PS C:\WINDOWS\system32>

    

2.Powershell 2.0关于日志操作的命令

(1)Get-EventLog
(2)Get-WinEvent
(3)New-EventLog
(4)Clear-EventLog
(5)Remove–EventLog
(6)Show-EventLog
(7)Write-EventLog
(8)Limit-EventLog
    

(1)Get-Ev

你可能感兴趣的:(网络安全)