Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
logman import perf_log -s server_1 -xml C:\Windows\perf_log.xmlThis guide gathers the Microsoft Learn syntax and parameter reference for logman import and logman export, a Windows command or tool subcommand. Availability can depend on Windows version, role, optional feature and execution context.
logman import [-n] <name> -xml <name> [options]
logman export [-n] <name> -xml <name> [options]The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Example from the linked Microsoft Learn article. Check its paths, targets and availability before adapting it.
logman import perf_log -s server_1 -xml C:\Windows\perf_log.xml| Option / clause | Description |
|---|---|
import / export | Import a Data Collector Set from XML or export one to XML. |
[-n] <name> | Identify the target Data Collector Set by name. |
-xml <name> | Specify the XML file to read or write. |
-s <computer name> | Run against the specified remote computer. |
-config <value> | Load command options from a settings file. |
-ets | Send commands directly to Event Trace Sessions without saving or scheduling. |
-u <user [password]> / -y | Choose a Run As identity, or answer yes to confirmation prompts. |
/? | Display context-sensitive help. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.