Windows – Access Windows Registry from Ubuntu

Ubuntuwindows 7windows-registry

Is there any way I can access registry of my Windows 7 installation from Ubuntu. I believe that Registry Editor is a GUI to edit various configuration settings which are stored and distributed among multiple files. So I wonder if I can access those configuration from Ubuntu (or any other non-windows OS).

Best Answer

The chntpw tool has (very basic) registry editing capabilities.

Also try the regedit that comes with Wine – you might be able to load the Win7 registry hives into it. The files are:

  • Registry: HKLM\SYSTEM

    File: \WINDOWS\system32\config\system

  • Registry: HKLM\SOFTWARE

    File: \WINDOWS\system32\config\software

  • Registry: HKU\<user-SID> (aka HKCU)

    File: <home>\NTUSER.DAT

  • Registry: HKU\<user-SID>_Classes (aka HKCU\Software\Classes)

    File: <home>\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat

    File: <home>\AppData\Local\Microsoft\usrclass.dat – as of Windows Vista

  • Registry: HKU\.DEFAULT (the system account)

    File: \WINDOWS\system32\config\default

Note that HKU\.DEFAULT is the system account. It is not the template account.

The template account's files are at \Documents and Settings\Default User (substitute for <home> above).

[self todo: SECURITY, SAM]

Related Question