1. Home
  2. How to Start Logging USB Activity on a Windows PC Going Forw

How to Start Logging USB Activity on a Windows PC Going Forward

Windows cannot rebuild USB plug-ins from days when logging was off. This page shows the switches to turn on today and a checklist to roll them out.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20267 min read
Quick answerEnable the DriverFrameworks-UserMode Operational log with wevtutil, then turn on Plug and Play Events auditing with auditpol. Both are off by default, so each starts recording only from that moment.
  • Commands for wevtutil and auditpol
  • Rollout checklist
  • Works on Windows 10 and 11
USB activity logging switch and log feedlog on

The log-before-you-need-it rule

The log-before-you-need-it rule says to enable USB logging on every PC today, because Windows cannot reconstruct plug-ins from days when the log was off. Four switches cover the job.

Logging pipelineEnable logsPlug-in eventReview weeklyAct on itA log you never open still has to be on before the plug-in happens
From a plug-in event through the logs to a review on a schedule.
Four USB logging switches and where each records
SwitchCommand or placeRecordsDefault
DriverFrameworks-UserMode logwevtutil sl ... /e:trueEvent 2003 connect, 2100 and 2102 removalOff
Plug and Play auditauditpol subcategory Plug and Play EventsSecurity event 6416Off
Removable Storage auditauditpol subcategory Removable StorageFile access on removable mediaOff
Driver-install eventsSystem log, event 20001First connection of a deviceOn

Order matters less than coverage. Turn on the event log first, because it is the cheapest switch and the one most often missed. Add Plug and Play auditing next if you want events in the Security log, where a central collector can pick them up. Save removable-storage auditing for PCs that hold sensitive files, since it writes far more entries.

Newer Windows 10 and 11 builds may also need a registry value named HotPlugSecureOpen before removable-storage events are written. NXLog documents this, so confirm on your own build by testing with a harmless drive.

Build your commands

USB logging command generator

Pick what to turn on. The commands below update as you choose. Run them in an elevated prompt.

wevtutil sl Microsoft-Windows-DriverFrameworks-UserMode/Operational /e:true
Scope

The generator only prints text. Review each line, then run it yourself on PCs you are allowed to change.

Roll it out on more than one PC

A rollout needs four decisions: which PCs, how big the logs may grow, where copies go, and who reads them. Without a reader the logs only fill up.

Rollout checklist

0 of 5 completed

Software can add a log on top. USB Block records which device was allowed and when, and its Reports and Logs tab keeps the latest one hundred entries.

USB Block Reports and Logs tab with Device Report and Usage Report columns
The Reports and Logs tab lists devices and when they were used.

Its page lists Windows 10, 8, 7 and Windows Server, so test before you plan a Windows 11 rollout. For the wider picture of reading existing history, use the main guide.

Add an allow-list and a log to the PCs that need one.

Get USB Block →

Questions about logging USB activity

How do I turn on USB event logging in Windows?

Open Event Viewer, go to Applications and Services Logs, Microsoft, Windows, DriverFrameworks-UserMode, right-click Operational and choose Enable Log. Or run wevtutil sl Microsoft-Windows-DriverFrameworks-UserMode/Operational /e:true in an elevated prompt. Plug in a test drive and look for event 2003.

Can I enable the log on a remote computer?

Yes, with the /r option of wevtutil, for example wevtutil sl channel /e:true /r:PCNAME, when you have administrator rights on that PC and remote event log management is allowed through its firewall. Test on one machine before you run the same command across a list of PCs.

What does event 6416 record?

It records that an external device was recognised by the system, and it needs the Plug and Play Events audit subcategory enabled, which is off by default. You can turn it on with auditpol. The event lands in the Security log, so it follows your Security log retention settings.

Will logging slow down the PC?

Not noticeably for plug-in events, which are rare compared with other log writes. File-level auditing of removable storage can generate many more events, so enable it only where you need it and size the Security log accordingly. Watch disk space on small drives after you enable it.

Is logging enough to stop data theft?

No. Logs record what happened and do not prevent it. They help you answer who plugged what in and when. To prevent copying you need a policy or a program that blocks removable storage, which is a separate decision with its own trade-offs.

How long should I keep USB logs?

Keep them as long as your own policy or the rules that apply to your organisation require, and at least long enough to cover how soon you would notice a problem. Raise the log size or export to a file regularly so the oldest events are not silently overwritten.

Does Windows Home support these logs?

Event Viewer and wevtutil exist on Windows Home. The Group Policy route for audit settings needs gpedit, which Home builds usually lack, but auditpol runs from an elevated command prompt. Check each command on your own edition before you plan a rollout.