Guest User

Untitled

a guest
Dec 18th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. On event - Log: Security, Source: Microsoft-Windows-Eventlog, EventID: 1102
  2.  
  3. -executionpolicy bypass -windowstyle hidden -file C:1102.ps1
  4.  
  5. Add-Type -AssemblyName System.Windows.Forms
  6. $lastEvt = Get-WinEvent -LogName 'Security' -MaxEvents 20 | ? { $_.Id -eq 1102 } | select -First 1
  7. [System.Windows.Forms.MessageBox]::Show(($lastEvt.Message), 'Event ID: 1102')
Add Comment
Please, Sign In to add comment