Exporting logs with Application Verifier

Dave 206 Reputation points
2022-08-29T04:48:52.17+00:00

I'm running the following commands in PowerShell, but can't get it to understand my log export:

  1. Get help syntax: appverif -?, the output includes this syntax: appverif -export log -for foo.exe -with to=c:\sample.xml
  2. Enable settings for my app: appverif /verify CPPDefaultConsoleApplication.exe
  3. Run my app: .\CPPDefaultConsoleApplication\Release\CPPDefaultConsoleApplication.exe
  4. Export the log to XML: appverif -export log -for CPPDefaultConsoleApplication.exe -with To=C:\logs\sample.xml Application Verifier 10.0.19041 (x64)
    Copyright (c) Microsoft Corporation. All rights reserved. AVRF: Error: Failed to understand command line [-export log -for CPPDefaultConsoleApplication.exe -with to=C:\logs\sample.xml]. Please use '-?' for help information.

C:\logs does exist.

If I open Application Verifier GUI I can see the application, see the log entry and use "Save As..." to export to XML. (The View button does nothing). I can't use the GUI long-term as I am trying to run in a CI pipeline.

Windows for business Windows Server User experience PowerShell
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.