dumpusn

General discussion related to "Everything".
Post Reply
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

dumpusn

Post by void »

dumpusn is a command line tool to display USN Journal events.

Download
Usage

Download

dumpusn.zip (55 KB)



Usage

dumpusn.exe <volume> [file-reference-number]
-or-
dumpusn.exe <filename>

<volume>
The volume path.
For example:
dumpusn.exe C:
dumpusn.exe \\.\C:
dumpusn.exe \\?\Volume{00000000-0000-0000-0000-000000000000}

[file-reference-number]
The file reference number in hexidecimal (with 0x prefix) or decimal.
The sequence number is ignored if 0.
All USN journal events are shown if omitted.
For example:
dumpusn.exe C: 0x0005000000000005
dumpusn.exe C: 5

<filename>
Show USN journal events for the specified file or folder.
For example:
dumpusn.exe C:\windows\explorer.exe

Requires administrative privileges for low level read access to NTFS/ReFS volumes.



Output:

Reason Parent-file-reference-number Filename
Reason Parent-file-reference-number Filename
Reason Parent-file-reference-number Filename
...



Example usage:

Show all USN events for the C: drive:
dumpusn c:

Show USN events for the file c:\windows\explorer.exe:
dumpusn c:\windows\explorer.exe

Show USN events for the file 0x00810000001f4356:
dumpusn c: 0x00810000001f4356


dumpusn c: 0x00810000001f4356



Use fsutil usn readdata <filename> to get the File-reference-number from a filename.

For example:


fsutil usn readdata C:\dev\everything\dumpusn\release\dumpusn.exe
FileRef# shows the File-reference-number



Source code is included in the download.



fsutil usn readjournal c: can also be used to dump all USN journal events.
hamid56
Posts: 26
Joined: Sun Jul 20, 2014 9:38 am

Re: dumpusn

Post by hamid56 »

Dear David
So thanks for this amazing nice tool
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: dumpusn

Post by void »

added the following syntax:

dumpusn.exe <filename>
Post Reply