Want to see who is logging on to a computer?
Run this one liner Get-WinEvent @{ LogName = “Security”; Id = 4624 } | group { $_.properties[5].Value }
Run this one liner Get-WinEvent @{ LogName = “Security”; Id = 4624 } | group { $_.properties[5].Value }