| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
🎉v7.0.0-preview.6 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
|
The 256 logname limit has been added to the get-winevent docs. No wonder I can't select all the logs in Event Viewer when making a custom view! |
Sorry, something went wrong.
|
I would say as well that there's a 846 element limit in the providername. Odd number. $a = get-winevent -ListProvider * | % providername
get-winevent -ProviderName $a[0..846]
Get-WinEvent: The data is invalid.
Get-WinEvent: The data is invalid.
Get-WinEvent: The data is invalid. |
Sorry, something went wrong.
ReadEvent() returns the error if our query contains number of logs more then 256. So add the limit check and issue user-friendly error message.
| Back | FazBrowse Home | New Git URL |
PR Summary
Fix #10637
Add check and terminating throw if filter returns logs more 256.
Error message after the change:
PR Context
ReadEvent() returns the error if our query contains number of logs more then 256.
I did not find that 256 limit is documented. Nevertheless, we can verify that the filter returns more 256 log names and issue an appropriate message.
The design was ok for Windows XP with 3 logs, it worked on Windows 7 with 183 logs but now Windows 10 has over 400 logs and the query is no longer even executed (with exception "Invalid data").
PR Checklist