Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine Windows Version, Edition and Service Pack OF AN OFFLINE DISK IMAGE

Using the registry alone, how does one detect: The Windows Version (XP, Vista, 7). The Edition (Home Premium, Professional, Ultimate). And The Service Pack level (Beta, RTM, SP1, SP2).

This is because I am repairing on offline system. The Registry of offline systems can be mounted and accessed.

like image 939
unixman83 Avatar asked Apr 18 '11 23:04

unixman83


2 Answers

Use the values under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion. I presume you know where to find that hive?! The respective hive can be found under %SystemRoot%\System32\config with the name SOFTWARE.

Side-note: you can attempt to verify your results by looking at some well-known files (e.g. kernel32.dll, ntdll.dll) and into their version information resource (what you're looking for is the file version: with, e.g. GetFileVersionInfo()).

Edition values, if that's needed, can be found at HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions. See here.

like image 128
0xC0000022L Avatar answered Sep 30 '22 16:09

0xC0000022L


Everything you want is in HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion.

However, I believe these values can be faked, so be cautious.

like image 30
user541686 Avatar answered Sep 30 '22 18:09

user541686