wevtutil
是cmd中的命令,用于以不同格式显示Windows日志。
在Powershell中等效的cmdlet是什么?
我有时仍在PowerShell中使用wevtutil ...例如,我使用:
wevtutil el | ForEach {wevtutil cl "$_"}
清除我所有的事件日志。
PowerShell中有许多事件管理cmdlet,包括:
通过使用以下命令,可以获取可用cmdlet的列表:
Get-Command -CommandType Cmdlet -Name *Event*
如果您需要这些特定cmdlet之一的帮助,则可以使用get-help命令,如下所示:
get-help Write-EventLog
希望这可以帮助,
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句