Hello Gursimar Kaur,
The other advisor's PowerShell approach is solid for pulling file timestamps (LastWriteTime, LastAccessTime, CreationTime) off a drive once you point -Path at the USB's drive letter.
Worth splitting your question into two parts though, since they're tracked pretty differently:
Which USB drives were connected, and when — this part is well covered:
- Easiest is NirSoft USBDeview (free) — lists every USB storage device with first/last connect timestamps.
- Or Event Viewer > Windows Logs > System, filter for source USBSTOR / partition events.
- The registry also keeps a record under
HKLM\SYSTEM\CurrentControlSet\Enum\USBSTORif you want to dig manually.
Which files were actually opened from the USB — this is the weaker half. Windows doesn't keep a clean native log of "files opened from a specific drive." You can sometimes piece it together from leftover traces:
- File timestamps on the drive itself (which is what the PowerShell command above shows)
- Recent Items / jump lists
- Leftover
.lnkshortcut files
If you need to, feel free to share what you're ultimately trying to figure out (device usage vs. specific file access).
If the answer is helpful, please click "Yes". If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.