How can I enumerate all hardlinks on my boot drive

Page 1 of 2 12 LastLast

  1. Posts : 6,285
    Windows 10 Pro X64
       #1

    How can I enumerate all hardlinks on my boot drive


    Is there anything available in Windows 7 that will allow me to create a list of all the hardlinks and the files or folders they point to on my boot drive?

    I know I can do a fsutil hardlink list <file> to enumerate a single hardlink but what I'd like is a list of all hardlinks and the source they point to.

    If nothing is available in Win 7, does anyone know of a program I can download to do this?
      My Computer


  2. Posts : 1,872
    Windows 10 Pro x64, Windows 8.1 Pro x64, Windows 7 Ultimate x64 SP1,
       #2

    You can use dir /al /s

    in the Command prompt

    To get a text file output

    dir /al /s > C:\Link.txt
      My Computer


  3. Posts : 6,285
    Windows 10 Pro X64
    Thread Starter
       #3

    Doesn't work. I tried from C:\Windows and C:\Windows\system32, both of which I know have hard links and noting was reported.
    C:\Windows>dir /al /s
    Volume in drive C is D370_C
    Volume Serial Number is C89E-70E8
    File Not Found

    C:\Windows>cd System32

    C:\Windows\System32>dir /al /s
    Volume in drive C is D370_C
    Volume Serial Number is C89E-70E8
    File Not Found
    FOr example:
    C:\Windows\System32>fsutil hardlink list msiexec.exe
    \Windows\System32\msiexec.exe
    \Windows\winsxs\amd64_microsoft-windows-installer-executable_31bf3856ad364e35_6.1.7601.17514_none_a7a77a3b9cb96ce6\msiexec.exe
    So a hardlink is not a reparsepoint.
    C:\Windows\System32>fsutil reparsepoint query msiexec.exe
    Error: The file or directory is not a reparse point.
      My Computer


  4. Posts : 7,730
    Windows 7 Ultimate SP1 64-Bit
       #4

    I'm not sure if this information is what you're after, but I'll post the link anyway.

    Link Shell Extension
      My Computer


  5. Posts : 6,285
    Windows 10 Pro X64
    Thread Starter
       #5

    Thanks, I already have that extension installed. Works great for individual files or folders but does not provide a way to scan a folder or drive for all hardlinks.
      My Computer


  6. Posts : 6,330
    Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64 +Linux_VMs +Chromium_VM
       #6

    Don't know if you get that info with this

    Hard-Link Migration Store
      My Computer


  7. Posts : 7,730
    Windows 7 Ultimate SP1 64-Bit
       #7

    Once again, I'm not sure if Junction Link Magic is an example of what you want, but here it is:

    Junction Link Magic
      My Computer


  8. Posts : 16,155
    7 X64
       #8

    NTFSLinksView - View NTFS symbolic links and junction points

    Don't see anything there for hardlinks, tho.
      My Computers


  9. Posts : 10,200
    MS Windows 7 Ultimate SP1 64-bit
       #9

    ZTrucker,
    I'm more disturbed that DIR produces an error message.
    Did you go to a command prompt, that is, did you:
    WIN | type CMD.EXE | ENTER
    WIN=key with microsoft logo on top.
      My Computer


  10. Posts : 6,285
    Windows 10 Pro X64
    Thread Starter
       #10

    I run with UAC disabled and issued the dir commands from a Command Prompt window. Tried it as you mentioned with the same Not found message.

    NTFSLinksView - no hardlink support.
    JunctionMagic - no hardlink support.
    Hard-Link Migration Store - nothing to do with listing existing hardlinks.

    Looks like the only way to do this is to iterate through all folders and using the fsutil command to query for a hard link.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:18.
Find Us