Home
%3CLINGO-SUB%20id%3D%22lingo-sub-270840%22%20slang%3D%22en-US%22%3ECapturing%20USB%20Debug%20Traces%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-270840%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EFirst%20published%20on%20MSDN%20on%20Sep%2002%2C%202014%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3EBy%20Philip%20Froese%20%5BMSFT%5D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%5BUpdate%2004%2F25%2F2019%5D%20We%20strongly%20suggest%20you%20to%20use%20instructions%20from%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fusbtrace%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Faka.ms%2Fusbtrace%3C%2FA%3E%20for%20collecting%20USB%20traces%20specially%20if%20you%20are%20root%20causing%20problems%20related%20to%20USB%20Type-C%20and%20HID.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%5BUpdate%2011%2F2016%5D%20The%20commands%26nbsp%3Boutlined%20in%20this%20post%20are%20now%26nbsp%3Bpublished%26nbsp%3Bin%20the%20USB%20and%20HID%20trace%20capture%20script%20available%20at%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fusbtrace%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Faka.ms%2Fusbtrace%20%3C%2FA%3E%20.%20%3CBR%20%2F%3E%3CBR%20%2F%3EPrevious%20blog%20posts%20have%20described%20in%20detail%20how%20to%20capture%20and%20read%20USB%20ETW%20%2C%20and%20WPP%20traces.%26nbsp%3B%20This%20post%20is%20a%20supplement%20to%20those%2C%20and%20aggregates%20the%20trace%20capture%20commands%20into%20a%20condensed%20reference.%26nbsp%3B%20Please%20continue%20to%20refer%20back%20to%20the%20previous%20posts%20for%20more%20details%20on%20the%20two%20tracing%20mechanisms%20and%20parsing%20the%20respective%20traces.%20%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20following%20commands%20will%20generate%20traces%20from%20the%20USB%203.0%20and%20USB%202.0%20driver%20stacks%20as%20well%20as%20other%20related%20components%3A%20WinUSB%2C%20USBCCGP%2C%20and%20PCI.%26nbsp%3B%20We%20recommend%20that%20you%20capture%20the%20complete%20set%20of%20traces%2C%20but%20if%20you%20are%20certain%20that%20a%20specific%20component%20is%20not%20relevant%20to%20the%20scenario%20you%20want%20to%20analyze%2C%20you%20may%20omit%20the%20commands%20that%20pertain%20to%20that%20component.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1704674682%22%20id%3D%22toc-hId-1704674682%22%20id%3D%22toc-hId-1704674682%22%3ECapturing%20USB%20ETW%20and%20WPP%20event%20traces%3A%3C%2FH2%3E%0A%3CP%3E%3CBR%20%2F%3EYou%20can%20capture%20USB%20event%20traces%20without%20installing%20any%20additional%20software.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CSTRONG%3E1)%20%3C%2FSTRONG%3E%20Open%20an%20elevated%20command%20prompt%20window.%26nbsp%3B%20One%20way%20is%20to%20right%20click%20on%20the%20Start%20button%20and%20select%20%3CSTRONG%3E%20Command%20Prompt%20(Admin)%20%3C%2FSTRONG%3E%20.%20%3CBR%20%2F%3E%3CBR%20%2F%3E2)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BDisconnect%20the%20USB%20devices%20that%20you%20are%20not%20interested%20in.%26nbsp%3B%20Fewer%20devices%20result%20in%20smaller%20traces%20making%20it%20easier%20to%20read%20and%20analyze.%20%3CBR%20%2F%3E%3CBR%20%2F%3E3)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BStart%20a%20capture%20session%20by%20pasting%20this%20sequence%20of%20commands%20into%20the%20elevated%20command%20prompt%3A%3C%2FP%3E%0A%3CP%3Elogman%20create%20trace%20-n%20usbtrace%20-o%20%25SystemRoot%25%5CTracing%5Cusbtrace.etl%20-ct%20perf%20-nb%20128%20640%20-bs%20128%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20update%20trace%20-n%20usbtrace%20-p%20Microsoft-Windows-USB-USBXHCI%20(Default%2CPartialDataBusTrace%2CStateMachine)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20update%20trace%20-n%20usbtrace%20-p%20Microsoft-Windows-USB-UCX%20(Default%2CPartialDataBusTrace%2CStateMachine)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20update%20trace%20-n%20usbtrace%20-p%20Microsoft-Windows-USB-USBHUB3%20(Default%2CPartialDataBusTrace%2CStateMachine)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20update%20trace%20-n%20usbtrace%20-p%20Microsoft-Windows-USB-USBPORT%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20update%20trace%20-n%20usbtrace%20-p%20Microsoft-Windows-USB-USBHUB%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20update%20trace%20-n%20usbtrace%20-p%20Microsoft-Windows-Kernel-IoTrace%200%202%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-n%20usbtrace%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20usbhub3%20-ct%20perf%20-p%20%7B6e6cc2c5-8110-490e-9905-9f2ed700e455%7D%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cusbhub3.etl%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20ucx01000%20-ct%20perf%20-p%20%7B6fb6e467-9ed4-4b73-8c22-70b97e22c7d9%7D%26nbsp%3B%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cucx01000.etl%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20usbxhci%20-ct%20perf%20-p%20%7B9F7711DD-29AD-C1EE-1B1B-B52A0118A54C%7D%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cusbxhci.etl%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20usbhub%20-ct%20perf%20-p%20%7Bb10d03b8-e1f6-47f5-afc2-0fa0779b8188%7D%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cusbhub.etl%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20usbport%20-ct%20perf%20-p%20%7Bd75aedbe-cfcd-42b9-94ab-f47b224245dd%7D%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cusbport.etl%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20usbccgp%20-ct%20perf%20-p%20%7Bbc6c9364-fc67-42c5-acf7-abed3b12ecc6%7D%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cusbccgp.etl%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20winusb%20-ct%20perf%20-p%20%7Bef201d1b-4e45-4199-9e9e-74591f447955%7D%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cwinusb.etl%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20start%20-ets%20pci%20-ct%20perf%20-p%20%7B47711976-08c7-44ef-8fa2-082da6a30a30%7D%200xffffffff%200xff%26nbsp%3B%20-o%20%25SystemRoot%25%5CTracing%5Cpci.etl%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%20%3CEM%3E(Note%3A%20these%20provider-specific%20GUIDs%20correspond%20to%20those%20that%20can%20be%20obtained%20from%20the%20provider%E2%80%99s%20symbol%20file%20using%20Tracepdb.exe%20as%20described%20in%20the%20previous%20%3C%2FEM%3E%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-USB-Blog%2FHow-to-include-and-view-WPP-trace-messages-in-a-driver-8217-s%2Fba-p%2F270778%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3E%20%3CEM%3E%20WPP%20blog%20post%20%3C%2FEM%3E%20%3C%2FA%3E%20%3CEM%3E%20)%20%3C%2FEM%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E4)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BPerform%20the%20action%20that%20you%20want%20to%20capture.%26nbsp%3B%20For%20example%2C%20plug%20in%20USB%20device%20that%20fails%20to%20enumerate%20properly.%26nbsp%3B%20The%20session%20captures%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-USB-Blog%2FHow-does-USB-stack-enumerate-a-device%2Fba-p%2F270685%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3E%20device%20enumeration%20activities%20%3C%2FA%3E%20.%26nbsp%3B%20Keep%20the%20command%20prompt%20window%20open.%20%3CBR%20%2F%3E%3CBR%20%2F%3E5)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BStop%20the%20capture%20session%20when%20you%20are%20finished%20by%20pasting%20this%20sequence%20of%20commands%20into%20the%20elevated%20command%20prompt%3A%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-n%20usbtrace%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20delete%20-n%20usbtrace%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20usbhub3%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20ucx01000%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20usbxhci%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20usbhub%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20usbport%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20usbccgp%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20winusb%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Elogman%20stop%20-ets%20pci%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Emove%20%2FY%20%25SystemRoot%25%5CTracing%5Cusbtrace_000001.etl%20%25SystemRoot%25%5CTracing%5Cusbtrace.etl%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20preceding%20capture%20session%20generates%20a%20set%20of%20etl%20files%20stored%20at%20%25SystemRoot%25%5CTracing%5C%20(for%20example%2C%20C%3A%5CWindows%5CTracing).%26nbsp%3B%20Once%20complete%2C%20move%20these%20files%20to%20another%20location%20or%20rename%20them%20in%20order%20to%20avoid%20overwriting%20them%20when%20you%20capture%20another%20session.%20%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20described%20in%20the%20blog%20post%20on%20WPP%20tracing%20linked%20above%2C%20symbol%20files%20are%20required%20to%20parse%20these%20traces%20properly.%26nbsp%3B%20When%20capturing%20a%20set%20of%20traces%2C%20it%20is%20necessary%20to%20record%20the%20Windows%20version%20on%20which%20they%20were%20taken%20so%20that%20the%20traces%20can%20be%20mapped%20to%20the%20correct%20symbols%20for%20analysis.%26nbsp%3B%20One%20way%20to%20do%20this%20is%20to%20run%20the%20following%20command%20from%20an%20elevated%20prompt%20and%20save%20the%20resulting%20BuildNumber.txt%20file%20along%20with%20the%20traces%3A%3C%2FP%3E%0A%3CP%3Ereg%20query%20%22HKLM%5CSoftware%5CMicrosoft%5CWindows%20NT%5CCurrentVersion%22%20%2Fv%20BuildLabEX%20%26gt%3B%20%25SystemRoot%25%5CTracing%5CBuildNumber.txt%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-270840%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20MSDN%20on%20Sep%2002%2C%202014%20By%20Philip%20Froese%20%5BMSFT%5D%5BUpdate%2011%2F2016%5D%20The%20commands%26nbsp%3Boutlined%20in%20this%20post%20are%20now%26nbsp%3Bpublished%26nbsp%3Bin%20the%20USB%20and%20HID%20trace%20capture%20script%20available%20at%20http%3A%2F%2Faka.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-270840%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eetw%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ewpp%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-886953%22%20slang%3D%22en-US%22%3ERe%3A%20Capturing%20USB%20Debug%20Traces%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-886953%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%3C%2FP%3E%3CP%3EI'm%20unable%20to%20run%20these%20commands%2C%20might%20it%20be%20from%20here%20or%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fusbtrace%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Faka.ms%2Fusbtrace%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20command%3C%2FP%3E%3CPRE%3Elogman%20update%20trace%20-n%20usbtrace%20-p%20Microsoft-Windows-USB-USBXHCI%20(Default%2CPartialDataBusTrace%2CStateMachine)%3C%2FPRE%3E%3CP%3Efails%20with%20error%3C%2FP%3E%3CPRE%3EA%20user%20account%20is%20required%20to%20confirm%20the%20properties%20of%20the%20current%20Data%20Collector%20Set.%0AUma%20conta%20de%20usu%C3%A1rio%20%C3%A9%20necess%C3%A1ria%20para%20confirmar%20as%20propriedades%20do%20Conjunto%20de%20Coletores%20de%20Dados%20atual.%3C%2FPRE%3E%3CP%3Eno%20matter%20if%20I%20run%20it%20as%20administrator%20or%20not%2C%20but%20I%20see%20that%20if%20I%20run%20it%20on%20a%20different%20machine%20it%20works.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWorks%20at%3A%20Windows%20Version%201809%20(OS%20Build%2017763.737)%20(en-US)%3C%2FP%3E%3CP%3EFails%20at%3A%20Windows%20Vers%C3%A3o%201903%20(Compila%C3%A7%C3%A3o%20do%20Sistema%20Operacional%2018990.1)%20(pt-BR)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

First published on MSDN on Sep 02, 2014
By Philip Froese [MSFT]

 

[Update 04/25/2019] We strongly suggest you to use instructions from http://aka.ms/usbtrace for collecting USB traces specially if you are root causing problems related to USB Type-C and HID. 


[Update 11/2016] The commands outlined in this post are now published in the USB and HID trace capture script available at http://aka.ms/usbtrace .

Previous blog posts have described in detail how to capture and read USB ETW , and WPP traces.  This post is a supplement to those, and aggregates the trace capture commands into a condensed reference.  Please continue to refer back to the previous posts for more details on the two tracing mechanisms and parsing the respective traces.

The following commands will generate traces from the USB 3.0 and USB 2.0 driver stacks as well as other related components: WinUSB, USBCCGP, and PCI.  We recommend that you capture the complete set of traces, but if you are certain that a specific component is not relevant to the scenario you want to analyze, you may omit the commands that pertain to that component.

Capturing USB ETW and WPP event traces:


You can capture USB event traces without installing any additional software.

1) Open an elevated command prompt window.  One way is to right click on the Start button and select Command Prompt (Admin) .

2)     Disconnect the USB devices that you are not interested in.  Fewer devices result in smaller traces making it easier to read and analyze.

3)     Start a capture session by pasting this sequence of commands into the elevated command prompt:

logman create trace -n usbtrace -o %SystemRoot%\Tracing\usbtrace.etl -ct perf -nb 128 640 -bs 128

 

logman update trace -n usbtrace -p Microsoft-Windows-USB-USBXHCI (Default,PartialDataBusTrace,StateMachine)

 

logman update trace -n usbtrace -p Microsoft-Windows-USB-UCX (Default,PartialDataBusTrace,StateMachine)

 

logman update trace -n usbtrace -p Microsoft-Windows-USB-USBHUB3 (Default,PartialDataBusTrace,StateMachine)

 

logman update trace -n usbtrace -p Microsoft-Windows-USB-USBPORT

 

logman update trace -n usbtrace -p Microsoft-Windows-USB-USBHUB

 

logman update trace -n usbtrace -p Microsoft-Windows-Kernel-IoTrace 0 2

 

logman start -n usbtrace

 

logman start -ets usbhub3 -ct perf -p {6e6cc2c5-8110-490e-9905-9f2ed700e455} 0xffffffff 0xff  -o %SystemRoot%\Tracing\usbhub3.etl

 

logman start -ets ucx01000 -ct perf -p {6fb6e467-9ed4-4b73-8c22-70b97e22c7d9}  0xffffffff 0xff  -o %SystemRoot%\Tracing\ucx01000.etl

 

logman start -ets usbxhci -ct perf -p {9F7711DD-29AD-C1EE-1B1B-B52A0118A54C} 0xffffffff 0xff  -o %SystemRoot%\Tracing\usbxhci.etl

 

logman start -ets usbhub -ct perf -p {b10d03b8-e1f6-47f5-afc2-0fa0779b8188} 0xffffffff 0xff  -o %SystemRoot%\Tracing\usbhub.etl

 

logman start -ets usbport -ct perf -p {d75aedbe-cfcd-42b9-94ab-f47b224245dd} 0xffffffff 0xff  -o %SystemRoot%\Tracing\usbport.etl

 

logman start -ets usbccgp -ct perf -p {bc6c9364-fc67-42c5-acf7-abed3b12ecc6} 0xffffffff 0xff  -o %SystemRoot%\Tracing\usbccgp.etl

 

logman start -ets winusb -ct perf -p {ef201d1b-4e45-4199-9e9e-74591f447955} 0xffffffff 0xff  -o %SystemRoot%\Tracing\winusb.etl

 

logman start -ets pci -ct perf -p {47711976-08c7-44ef-8fa2-082da6a30a30} 0xffffffff 0xff  -o %SystemRoot%\Tracing\pci.etl




(Note: these provider-specific GUIDs correspond to those that can be obtained from the provider’s symbol file using Tracepdb.exe as described in the previous WPP blog post )



4)     Perform the action that you want to capture.  For example, plug in USB device that fails to enumerate properly.  The session captures device enumeration activities .  Keep the command prompt window open.

5)     Stop the capture session when you are finished by pasting this sequence of commands into the elevated command prompt:

logman stop -n usbtrace

 

logman delete -n usbtrace

 

logman stop -ets usbhub3

 

logman stop -ets ucx01000

 

logman stop -ets usbxhci

 

logman stop -ets usbhub

 

logman stop -ets usbport

 

logman stop -ets usbccgp

 

logman stop -ets winusb

 

logman stop -ets pci

 

move /Y %SystemRoot%\Tracing\usbtrace_000001.etl %SystemRoot%\Tracing\usbtrace.etl






The preceding capture session generates a set of etl files stored at %SystemRoot%\Tracing\ (for example, C:\Windows\Tracing).  Once complete, move these files to another location or rename them in order to avoid overwriting them when you capture another session.

As described in the blog post on WPP tracing linked above, symbol files are required to parse these traces properly.  When capturing a set of traces, it is necessary to record the Windows version on which they were taken so that the traces can be mapped to the correct symbols for analysis.  One way to do this is to run the following command from an elevated prompt and save the resulting BuildNumber.txt file along with the traces:

reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v BuildLabEX > %SystemRoot%\Tracing\BuildNumber.txt

1 Comment
Occasional Visitor

Hey,

I'm unable to run these commands, might it be from here or http://aka.ms/usbtrace 

the command

logman update trace -n usbtrace -p Microsoft-Windows-USB-USBXHCI (Default,PartialDataBusTrace,StateMachine)

fails with error

A user account is required to confirm the properties of the current Data Collector Set.
Uma conta de usuário é necessária para confirmar as propriedades do Conjunto de Coletores de Dados atual.

no matter if I run it as administrator or not, but I see that if I run it on a different machine it works.

 

Works at: Windows Version 1809 (OS Build 17763.737) (en-US)

Fails at: Windows Versão 1903 (Compilação do Sistema Operacional 18990.1) (pt-BR)