09.02.2014 Views

Windows sysinternals

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

132 Part II Usage Guide<br />

Automating Procmon: Command-Line Options<br />

Procmon offers a number of command-line options, which helps enable scripted execution.<br />

Say, for example, you need a novice user to run Procmon with a particular configuration<br />

and to send you the results. Instead of asking the user to follow detailed instructions for<br />

configuring and running Procmon, you can simply give that person a batch file to run.<br />

Procmon’s Help menu includes a quick summary of Procmon’s command-line options.<br />

Table 4-4 describes them in more detail.<br />

TABLE 4-4 Command-Line Options<br />

Option<br />

/OpenLog pml-file<br />

/BackingFile pml-file<br />

/PagingFile<br />

/NoConnect<br />

/NoFilter<br />

/AcceptEula<br />

/LoadConfig config-file<br />

/Profiling<br />

/Minimized<br />

/WaitForIdle<br />

/Terminate<br />

/Quiet<br />

/Run32<br />

Description<br />

Opens a previously saved Procmon log file. Note that a log file must<br />

be opened by an instance of Procmon running in the same processor<br />

architecture as that which recorded it.<br />

Saves events in the specified backing file. Using a named backing file<br />

enables a log file capacity limited by free disk space. Note that this option<br />

is sticky—the file you specify becomes the Procmon log not just for<br />

the instance you’re launching; it becomes a permanent setting change.<br />

(See the “Backing Files” section for more information.)<br />

Saves events in virtual memory, backed by the system page file. This<br />

option is used to revert the /BackingFile setting.<br />

Starts Procmon but does not automatically begin capturing data. By<br />

default, Procmon begins event capture on start.<br />

Clears the filter at startup. This removes all filter rules except the<br />

exclusion of Profiling events.<br />

Doesn’t display the End User License Agreement (EULA) dialog box on<br />

first use. Use of this option implies acceptance of the EULA.<br />

Loads a previously saved configuration file. (See the section on<br />

Configuration Files for more information.)<br />

Enables the Thread Profiling feature.<br />

Starts Procmon minimized.<br />

Waits for up to 10 seconds for another instance of Procmon on the same<br />

Win32 Desktop to become ready to accept commands. See below for an<br />

example of how to use this option.<br />

Terminates any instance of Procmon running on the same Win32<br />

Desktop and then exits. This option uses window messages to send<br />

the command to the target Procmon instance. (See “Sessions, Window<br />

Stations, Desktops, and Window Messages” in Chapter 2.)<br />

Doesn’t confirm filter settings during start up. By default, if filter rules<br />

have been configured, Procmon displays the filter dialog box to allow<br />

you to modify them before capturing data.<br />

Run the 32-bit version to load 32-bit log files (x64 only).<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!