text
stringlengths
0
4.23k
-[-]v <nnnnnn|mmddhhmm>
Attaches 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, 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.
-y
Answer yes to all questions without prompting.
-mods <path [path [...]]>
Specifies the list of modules to log API calls from.
-inapis <module!api [module!api [...]]>
Specifies the list of API calls to include in logging.
-exapis <module!api [module!api [...]]>
Specifies the list of API calls to exclude from logging.
-[-]ano
Log (-ano) API names only, or do not log only (-ano) API names.
-[-]recursive
Log (-recursive) or do not log (-recursive) APIs recursively beyond the first layer.
-exe <value>
Specifies the full path to an executable for API Tracing.
/?
Displays context-sensitive help.
<computer name>
<value>
<name>
<bin|bincirc>
<user [password]>
*
<[start] [stop] [[start] [stop] [...]]>
<[[hh:]mm:]ss>
<M/d/yyyy h:mm:ss[AM|PM]>
<M/d/yyyy h:mm:ss[AM|PM]>
<[[hh:]mm:]ss>
<path|dsn!log>
<nnnnnn|mmddhhmm>
<task>
<value>
<[[hh:]mm:]ss>
<path [path [...]]>
<module!api [module!api [...]]>
<module!api [module!api [...]]>
<value>
Remarks
Examples
To create an API trace counter called trace_notepad, for the executable file c:\windows\notepad.exe, and putting the results in the file c:\notepad.etl, type:
logman create api trace_notepad -exe c:\windows\notepad.exe -o c:\notepad.etl
To create an API trace counter called trace_notepad, for the executable file c:\windows\notepad.exe, collecting values produced by the module at c:\windows\system32\advapi32.dll, type:
logman create api trace_notepad -exe c:\windows\notepad.exe -mods c:\windows\system32\advapi32.dll
To create an API trace counter called trace_notepad, for the executable file c:\windows\notepad.exe, excluding the API call TlsGetValue produced by the module kernel32.dll, type:
logman create api trace_notepad -exe c:\windows\notepad.exe -exapis kernel32.dll!TlsGetValue
logman create cfg
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Creates a configuration data collector.
Syntax
logman create cfg <[-n] <name>> [options]
Parameters
Parameter
Description
-s <computer name>
Performs the command on the specified remote computer.
-config <value>