wevtutil qe Application


hi all,

i'm struggling query event , hoping may able help, query is:

wevtutil qe application "/q:*[application [(eventid=2)]]" /f:text /rd:true > c:\temp\eventid_1530.txt 

the event i'm searching is:

- <event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">  - <system>    <provider name="microsoft-windows-search-profilenotify" guid="{fc6f77dd-769a-470e-bcf9-1b6555a118be}" eventsourcename="windows search service profile notification" />     <eventid qualifiers="49152">2</eventid>     <version>0</version>     <level>2</level>     <task>0</task>     <opcode>0</opcode>     <keywords>0x80000000000000</keywords>     <timecreated systemtime="2014-10-30t15:14:42.000000000z" />     <eventrecordid>59415</eventrecordid>     <correlation />     <execution processid="0" threadid="0" />     <channel>application</channel>     <computer>pc.domain.local</computer>     <security />     </system>  - <eventdata>    <data name="useraccount">domain\user</data>     <data name="errorcode">0x80004005</data>     <data name="errormessage">unspecified error</data>     <binary />     </eventdata>    </event>
take , let me know think?

hello,

based on test, seems command incorrect. please try run following command again. believe command wantd.

wevtutil query-events application /q:"event[system[(eventid=2)]]" /rd:true /format:text > c:\test.txt

if post helps you, please click mark answer button @ top of message. marking post answered, others find answer faster.



Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2