1 2 3 4 5 6 7 8 9 10 11 12 13 |
Get-EventLog -LogName Application | ForEach-Object { [PSCustomObject]@{ Time = $_.TimeGenerated LogonType = $_.ReplacementStrings[8] Process = $_.ReplacementStrings[9] Domain = $_.ReplacementStrings[5] User = $_.ReplacementStrings[6] Method = $_.ReplacementStrings[10] Source = $_.Source } } | Out-GridView |