查看登陆事件

Posted feiyucha

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查看登陆事件相关的知识,希望对你有一定的参考价值。

实现效果:

  技术图片

实现代码:

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

 

以上是关于查看登陆事件的主要内容,如果未能解决你的问题,请参考以下文章