Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # LogName can be any available event log
- # or it can be replaced with "-Path" and a file path
- # The resulting JSON can then be POSTed to a webserver of your choice
- Get-WinEvent -LogName "Security" -MaxEvents 1 | ConvertTo-Json
Add Comment
Please, Sign In to add comment