查询与审核
查询与审核
# 查询脚本块日志(Event ID 4104)
Get-WinEvent -LogName "Microsoft-Windows-PowerShell/Operational" -MaxEvents 20 |
Where-Object Id -eq 4104 | Format-List TimeCreated, Message
# 引擎生命周期事件:400(启动)/403(停止)脚本块日志可能记录含敏感信息的脚本内容:日志访问权限应受控,并与个人信息保护要求一并考虑。