Any way to get the hostname for an external HDD with Windows 10?

  1. Posts : 163
    Windows 10

    Any way to get the hostname for an external HDD with Windows 10?

    I've got a computer with Windows 10 installed, the software is corrupted but I can access internal files just fine if I attach it's HDD with USB. I'd like to know the hostname for that Windows 10, so I removed the HDD and attached it to another Windows 10 machine I booted from.
    I heard there should be a log file in that corrupted Windows 10 to check the hostname. Anyone can help me locate it?
      My Computer

  2. Posts : 13,957
    Windows 10 Pro X64 21H1 19043.1503

    You should be able to get it from the registry stored on that hard drive:

    Computer Host Name via a file


    Probably the most dependable way is to peer into the System Registry file.

    1) Copy the file: \Windows\System32\config\system from the subject drive onto your local hard drive
    2) Start up Regedit (Start -> Run -> "regedit")
    3) Single-click on "HKEY_LOCAL_MACHINE" to select it
    4) Do: File -> Load Hive. Then navigate to and select the "System" file that you copied from the external disk.
    5) When asked for a Key name, enter any name -- I'll Use "EXT" for this example.
    6) Double-click on HKEY_LOCAL_MACHINE and you will see a "EXT" key under it.
    7) Navigate to EXT\ControlSet001\Control\ComputerName\ComputerName
    8) There should be an entry in the right window with the computer name.
    9) To clean up, single-click on the "EXT" key to select it then File->Unload Hive. Answer "Yes" in the next box.

    Note   Note
    If you want to load a hive you must select HKEY_LOCAL_MACHINE (or HKEY_USERS but you don't want that). Only after you do that does the load hive option appear in the file menu. If you just open regedit and Computer is highlighted then load hive option is greyed out.
      My Computers

  3. Posts : 163
    Windows 10
    Thread Starter

    You're amazing, this worked like a charm. Thank you.
      My Computer

  4. Posts : 13,957
    Windows 10 Pro X64 21H1 19043.1503

    That's great. Glad it worked for you.
      My Computers


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

Designer Media Ltd
All times are GMT -5. The time now is 10:54.
Find Us

Windows 10 Forums