PSWinEventLogTool Experimental Automation Support
PowerShell PSWinEventLogTool parameters automation scripting wevtutil Event Viewer Windows LogsBy request, I have updated PSWinEventLogTool to incorporate some basic input parameters for making it compatible with scripting and automation.
Support is experimental and here is how it works...
Example Usage:
.\PSWinEventLogTool.ps1 -param_evt_log 1 -param_time_unit 1 -param_time_how_much 15
The example above should bypass the menus and return a zip containing the Application Log exported for the last 15 minutes previous to the execution time.
Parameters: #
param_evt_log - Selects which event log, from the available options:
- Application Log
- System Log
- Security Log
- All Logs
param_time_unit - Selects the unit of time we are exporting in, from the available options:
- Minutes
- Hours
- Days
- Weeks
- All Time
param_time_how_much - How much of the selected time unit are we exporting (if applicable - not required if param_time_unit is set to 5):
- (Input Time Quantity)
Check the GitHub repo to test it out.