Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

logman update cfg

Updated: April 17, 2012

Applies To: Windows Server 2008, Windows Vista

Update the properties of an existing configuration data collector.

For examples of how this command can be used, see Examples.

logman update cfg <[-n] <name>> [options]


Parameter Description


Displays context-sensitive help.

-s <computer name>

Perform the command on the specified remote computer.

-config <value>

Specifies the settings file containing command options.

[-n] <name>

Name of the target object.

-f <bin|bincirc|csv|tsv|sql>

Specifies the log format for the data collector.

-[-]u <user [password]>

Specifies the user to Run As. Entering a * for the password produces a prompt for the password. The password is not displayed when you type it at the password prompt.

-m <[start] [stop] [[start] [stop] [...]]>

Change to manual start or stop instead of a scheduled begin or end time.

-rf <[[hh:]mm:]ss>

Run the data collector for the specified period of time.

-b <M/d/yyyy h:mm:ss[AM|PM]>

Begin collecting data at the specified time.

-e <M/d/yyyy h:mm:ss[AM|PM]>

End data collection at the specified time.

-si <[[hh:]mm:]ss>

Specifies the sample interval for performance counter data collectors.

-o <path|dsn!log>

Specifies the output log file or the DSN and log set name in a SQL database.


Repeat the data collector daily at the specified begin and end times.


Append to an existing log file.


Overwrite an existing log file.

-[-]v <nnnnnn|mmddhhmm>

Attach file versioning information to the end of the log file name.

-[-]rc <task>

Run the command specified each time the log is closed.

-[-]max <value>

Maximum log file size in MB or maximum number of records for SQL logs.

-[-]cnf <[[hh:]mm:]ss>

When time is specified, create a new file when the specified time has elapsed. When time is not specified, create a new file when the maximum size is exceeded.


Answer yes to all questions without prompting.


Enable (-ni) or disable (--ni) network interface query.

-reg <path [path [...]]>

Specifies registry value(s) to collect.

-mgt <query [query [...]]>

Specifies WMI object(s) to collect using SQL query language.

-ftc <path [path [...]]>

Specifies the full path to the file(s) to collect.

Where [-] is listed, an extra - negates the option.

The following command updates the existing configuration data collector cfg_log to collect the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVerion\.

logman update cfg cfg_log -reg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVerion\"

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft