text
stringlengths
0
4.23k
/u
Unregisters server.
/s
Prevents displaying messages.
/n
Prevents calling DllRegisterServer. This parameter requires you to also use the /i parameter.
/i:<cmdline>
Passes an optional command-line string (cmdline) to DllInstall. If you use this parameter with the /u parameter, it calls DllUninstall.
<Dllname>
The name of the .dll file that will be registered.
/?
Displays help at the command prompt.
<cmdline>
<Dllname>
Examples
To register the .dll for the Active Directory Schema, type:
regsvr32 schmmgmt.dll
relog
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Extracts performance counters from performance counter logs into other formats, such as text-TSV (for tab-delimited text), text-CSV (for comma-delimited text), binary-BIN, or SQL.
Note
For more information about incorporating relog into your Windows Management Instrumentation (WMI) scripts, see the Scripting blog.
Syntax
relog [<filename> [<filename> ...]] [/a] [/c <path> [<path> ...]] [/cf <filename>] [/f {bin|csv|tsv|SQL}] [/t <value>] [/o {outputfile|DSN!CounterLog}] [/b <M/D/YYYY> [[<HH>:] <MM>:] <SS>] [/e <M/D/YYYY> [[<HH>:] <MM>:] <SS>] [/config {<filename>|i}] [/q]
Parameters
Parameter
Description
filename [filename ...]
Specifies the pathname of an existing performance counter log. You can specify multiple input files.
-a
Appends output file instead of overwriting. This option does not apply to SQL format where the default is always to append.
-c path [path ...]
Specifies the performance counter path to log. To specify multiple counter paths, separate them with a space and enclose the counter paths in quotation marks (for example, "path1 path2").
-cf filename
Specifies the pathname of the text file that lists the performance counters to be included in a relog file. Use this option to list counter paths in an input file, one per line. Default setting is all counters in the original log file are relogged.
-f {bin | csv | tsv | SQL}
Specifies the pathname of the output file format. The default format is bin. For a SQL database, the output file specifies the DSN!CounterLog. You can specify the database location by using the ODBC manager to configure the DSN (Database System Name).
-t value
Specifies sample intervals in n records. Includes every nth data point in the relog file. Default is every data point.
-o {Outputfile | SQL:DSN!Counter_Log}
Specifies the pathname of the output file or SQL database where the counters will be written. Note: For the 64-bit and 32-bit versions of relog.exe, you must define a DSN in the ODBC Data Source (64-bit and 32-bit respectively) on the system. Use the "SQL Server" ODBC driver to define a DSN.
-b <M/D/YYYY> [[<HH>:]<MM>:]<SS>]
Specifies the beginning time to copy the first record from the input file. Date and time must be in this exact format M/D/YYYYHH:MM:SS.
-e <M/D/YYYY> [[<HH>:]<MM>:]<SS>]
Specifies the end time to copy the last record from the input file. Date and time must be in this exact format M/D/YYYYHH:MM:SS.
-config {filename | i}
Specifies the pathname of the settings file that contains command-line parameters. If you're using a configuration file, you can use -i as a placeholder for a list of input files that can be placed on the command line. If you're using the command line, don't use -i. You can also use wildcards, such as *.blg to specify several input file names at once.
-q
Displays the performance counters and time ranges of log files specified in the input file.
-y
Bypasses prompting by answering "yes" to all questions.
/?
Displays help at the command prompt.
filename [filename ...]
path [path ...]
"path1 path2"