CmdID

CmdID / Commands / logman create

logman create cfg

Creates a configuration data collector. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0
logman create cfg <[-n] <name>> [options]
logman create cfg cfg_log -reg HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Currentverion\\
logman create cfg cfg_log -mgt root\wmi:select * FROM MSNdis_Vendordriverversion
Show 23 options
-s <computer name>Performs the command on the specified remote computer.
-config <value>Specifies the settings file containing command options.
[-n] <name>Name of the target object.
-[-]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] [...]]>Changes to manual start or stop instead of a scheduled begin or end time.
-rf <[[hh:]mm:]ss>Runs the data collector for the specified period of time.
-b <M/d/yyyy h:mm:ss[AM|PM]>Begins collecting data at the specified time.
-e <M/d/yyyy h:mm:ss[AM|PM]>Ends data collection at the specified time.
-si <[[hh:]mm:]ss>Specifies the sample interval for performance counter data collectors.
-o <pathdsn!log> Specifies the output log file or the DSN and log set name in a SQL database.
-[-]rRepeats the data collector daily at the specified begin and end times.
-[-]aAppends an existing log file.
-[-]owOverwrites an existing log file.
-[-]v <nnnnnnmmddhhmm> Attaches file versioning information to the end of the log file name.
-[-]rc <task>Runs 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, creates a new file when the specified time has elapsed. When time is not specified, creates a new file when the maximum size is exceeded.
-yAnswers yes to all questions without prompting.
-[-]niEnables (-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.
/?Displays context-sensitive help.