bsharath
asked on
How can i search for a particular event log in all the machines in the file and get the results to a file
Hi,
How can i search for a particular event log in all the machines in the file and get the results to a file.
Is there a way to do this.
Regards
Sharath
How can i search for a particular event log in all the machines in the file and get the results to a file.
Is there a way to do this.
Regards
Sharath
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks Sharath,
Little amendment in my above statement.
WMIC /NODE:@"Computers.txt" /OUTPUT:C:\EventsOutput.tx t NTEVENT WHERE "EventCode='517'" GET /FORMAT:LIST ^--- enclose file name inside double quotes.
Little amendment in my above statement.
WMIC /NODE:@"Computers.txt" /OUTPUT:C:\EventsOutput.tx
ASKER
Farhan without the "" also i was able to get the results...
Yes, but if filename contains any space then it will generate an error.
ASKER
Ok Farhan thanks...
Don't hesitate contact again for any question