1. Home
  2. How to Find When a USB Drive Was Last Connected to a Windows

How to Find When a USB Drive Was Last Connected to a Windows PC

The last-connected time for a USB drive sits in the registry as a UTC value. This page shows where to find it, how to convert it and how to check it against a second record.

NewSoftwares.net editorial teamPublished November 2026Last verified: November 20266 min read
Quick answerOpen HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR, find the device, then read value 0066 under its Properties key. It is a UTC FILETIME, so convert it before you compare it with local time.
  • Windows 8 and later
  • Administrator account needed
  • Times stored in UTC
USB drive connection timelinefirst installlast arrivallast removal

Where the last-connected time lives

The last time a USB storage drive was connected is stored as a FILETIME value named 0066 under the device’s Properties key in the registry. It is in UTC, it exists on Windows 8 and later, and it needs an administrator account to read.

Three timestamp values0064 first installFILETIME (UTC)0066 last arrivalFILETIME (UTC)0067 last removalFILETIME (UTC)Convert before you compare with setup-log times, which are local
Where the first, last and removal values sit under one device key.
Registry values that hold USB timestamps
ValueMeaningWindows versionsStored as
0064First installWindows 7 and laterFILETIME, UTC
0066Last connectedWindows 8 and laterFILETIME, UTC
0067Last removalWindows 8 and laterFILETIME, UTC
  1. Open the device keyIn Registry Editor, run as administrator, go to HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR, then open the vendor and serial keys.
  2. Open the timestamp GUIDUnder Properties, open {83da6326-97a6-4088-9453-a19231573b29}, then the numbered keys 0064, 0066 and 0067.
  3. Read the data valueCopy the 8-byte data. A converter or the PowerShell line below turns it into a date.
  4. Compare with a second recordCheck Event Viewer event 2003 or USBDeview for the same serial number.

PowerShell: turn a FILETIME number into UTC

# Convert a copied FILETIME number (decimal) to a readable UTC time
[DateTime]::FromFileTimeUtc(133800000000000000)

PowerShell: show the same moment in local time

# Same value shown in this PC's local time
[DateTime]::FromFileTimeUtc(133800000000000000).ToLocalTime()
Quick check

If your converted time is exactly your UTC offset away from the time you remember, the registry is right and you only changed clocks.

Reconcile two clocks with the bracket rule

The bracket rule says to fix a window around the event, then accept a record only if it lands inside the window after both clocks are converted. It stops you from trusting a single timestamp that sits in the wrong time zone.

Registry values use UTC. The setup log and Event Viewer use local time. Convert everything into one zone first. Then write down the earliest and latest moments the drive could have been plugged in, such as “after the office opened and before the meeting.” A record outside that bracket points to a different event.

Two clocks for one plug-inRegistry timesUTCFILETIME valuesSetup log timeslocalsystem clock zoneSame plug-in, two clocks: line them up before you compare
UTC registry times shift by your offset to match local-time logs.
Which clock each record uses
RecordClockBest use
Registry 0064, 0066, 0067UTCIdentity plus first, last and removal times
Event Viewer events 2003, 2100Local timeExact plug-in moments after logging was enabled
setupapi.dev.logLocal timeFirst install of the driver
Watch for

Daylight saving time changes your offset by an hour in spring and autumn. A drive last used in winter and checked in summer needs the offset that applied on that date.

For the full overview of all five methods, return to the USB history guide. If the event log shows nothing at all, read the page on why USB history is empty.

What a matching pair looks like

A good pair has the same serial number in both records and times that differ by your UTC offset plus a few seconds. If the serial matches but the times disagree by more than that, suspect a restart, a log gap or a second plug-in.

Our outside review of USB locking tools notes that blocking and logging products solve a different problem from reading old registry data. If you want a standing record from now on, USB Block keeps its own list of allowed devices and when they were used, and our logging guide covers Windows’ own switches.

Want a password-gated allow-list and log on a Windows PC?

Get USB Block →

Questions about last-connected times

Where does Windows store the last time a USB drive was connected?

On Windows 8 and later it is the 0066 value under the device’s Properties key in the registry, found beneath HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR. The value holds a 64-bit FILETIME in UTC. Convert it with PowerShell or a converter tool before comparing it with any local clock.

What do the 0064, 0066 and 0067 values mean?

Forensic references describe 0064 as first install (Windows 7 and later), 0066 as last connected and 0067 as last removal, both Windows 8 and later. All three sit under the GUID key {83da6326-97a6-4088-9453-a19231573b29}\Properties. Treat them as strong clues and confirm with a second record.

Why does the registry time differ from the time I remember?

The registry stores UTC, while you remember local time. The gap equals your offset from UTC, so a value that looks hours off is normal. Daylight saving changes the offset by an hour twice a year, which can add a second source of confusion when you compare dates across seasons.

Can I find the last connection time without admin rights?

Usually not. The Enum keys and the DriverFrameworks log are readable only to administrators on typical setups, and PowerShell may print errors instead of data from a standard account. Sign in with an administrator account that you are entitled to use, and do not borrow credentials from another person.

Does the last-connected time change every time I plug the drive in?

On Windows 8 and later the 0066 value should update on each arrival, which is why it is useful. NirSoft warns that registry-based times can be lost or reset in some cases, such as a restart on Windows 7. Check the value against an event if the exact time matters.

How accurate is the setup log for connection times?

It is accurate for the moment Windows first installed a driver for the device, in local time, and it says little about later plug-ins. Magnet’s forensic notes rank it below the registry values as evidence. Use it for first use and use the registry or events for later use.

What if the drive has no serial number?

Windows then generates an identifier, and the second character of the instance key is an ampersand. Two identical sticks without serials can look alike, so you may not be able to tell them apart. Match on vendor, product, size and the dates, and treat the result as a probable match only.