Event viewer command line (CMD)
www.windows-commandline.com › event-viewer-commandWe can open event viewer console from command prompt or from Run window by running the command eventvwr. To retrieve the events information from log files in command line we can use eventquery.vbs. This file can be found in the directory C:\Windows\System32. Using eventquery.vbs we can dump the events selectively based on various parameters.