Get-WinEvent: Log count (405) is exceeded Windows Event Log API limit (256)

Hi there,

I am running get-winevent | get-member and the Shell responded " Get-WinEvent: Log count (405) is exceeded Windows Event Log API limit (256). Adjust filter to return less log names".

How do I adjust the Filter, thanks.

Leo,
Welcome to the forum.

When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org 1 <---- Click :point_up_2:t4: :wink:

What are you actually looking for? To get all log names you can run

Get-WinEvent -ListLog *

If you like to read more about the error …