001 002 003 004 005 006 007 | Get-EventLog -Before '01/26/2010' -after '01/25/2010' -ComputerName computername -LogName Security | ` where-object ` { ($_.username -notmatch '^NT AUTHORITY\\(SYSTEM|NETWORK SERVICE|LOCAL SERVICE|ANONYMOUS LOGON)$') ` -and ($_.category -eq "Logon/Logoff") } | ` select-object timegenerated,username,category,message | sort timegenerated | format-table -auto |
Hope that can save some of you a little time :)