Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 2nd, 2020 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $events = Get-EventLog -LogName System
  2. $events |
  3.     Group-Object { $_.TimeGenerated.Date } |
  4.     ForEach-Object {
  5.         $sortedGroup = $_.Group | Sort-Object TimeGenerated
  6.         [PSCustomObject]@{
  7.             Date       = $_.Name
  8.             FirstEvent = $sortedGroup[0].TimeGenerated
  9.             LastEvent  = $sortedGroup[-1].TimeGenerated
  10.         }
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top