Created
December 9, 2017 22:13
-
-
Save infosec-intern/b73dd7b6a823f3c088050617e4a36719 to your computer and use it in GitHub Desktop.
Convert a Windows event log record into a JSON document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment