zl程序教程

您现在的位置是:首页 >  其他

当前栏目

查看登陆事件

事件 查看 登陆
2023-09-14 08:58:57 时间

实现效果:

  

实现代码:

Get-EventLog -LogName Security -InstanceId 4624|
ForEach-Object{
    [PSCustomObject]@{
        Time=$_.TimeGenerated
        LogonType=$_.ReplacementStrings[8]
        ProcessName=$_.ReplacementStrings[17]
        Domain=$_.ReplacementStrings[6]
        User=$_.ReplacementStrings[5]
        ValidatePack=$_.ReplacementStrings[10]
        Source=$_.Source
    }
}|Out-GridView