Skip to content

Instantly share code, notes, and snippets.

@raspberrypisig
Last active November 25, 2026 07:36
Show Gist options
  • Select an option

  • Save raspberrypisig/75ebdf4e73a4f86f848f495f69b9508d to your computer and use it in GitHub Desktop.

Select an option

Save raspberrypisig/75ebdf4e73a4f86f848f495f69b9508d to your computer and use it in GitHub Desktop.
strings -e l /mnt/windows/Windows/System32/config/SOFTWARE | grep -E "ProductName|CurrentBuild|DisplayVersion" -A 1 | head -n 20
• ProductName. Will explicitly say Windows 7... or Windows 10... (Note: Microsoft kept the registry ProductName as "Windows 10" even on Windows 11 systems, so check the build number below).
• CurrentBuild.
• 7600 or 7601 = Windows 7
• 10240 to 19045 = Windows 10
• 22000 or higher (e.g., 22621, 22631, 26100) = Windows 11
strings -e l /mnt/windows/Windows/System32/ntoskrnl.exe | grep -E "^(6\.1\.|10\.0\.)" | head -n 5
• 6.1.7600 or 6.1.7601 = Windows 7
• 10.0.10240 through 10.0.19045 = Windows 10
• 10.0.22000 and above = Windows 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment