Jump to content

Recommended Posts

Posted

Hi guys,

 

I'm in the process of creating a powershell script that will log all the errors logged in the application and system sections of the event log over the past day to a text file. I've got most of the script sorted but I want to filter out specific event ID's that I don't want showing in the log, how can I do this?

Posted

thanks, got me on the right track.

 

Have this piped in now "Where{$eid -notcontains $_.eventid}", expressing $eid earlier in the script

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...