[clug] test for windows architecture from Linux
boydwilding at gmail.com
Fri Apr 5 05:07:20 MDT 2013
If you can access the C drive from a linux box, you could try the
following fairly simple check:
Check for timestamp of c:\windows\system32\winver.exe, if it is circa
2009 (mine is Tue 14 Jul 2009 1139 for win7) then it is win7, as that is
when it was released. Vista or below would be stamped 2006 or earlier.
Check for existence of c:\program files (x86)\, if it exists, it is
64bit, if not, it is 32bit.
Hope this helps.
On 03/04/13 17:32, Scott Ferguson wrote:
> Any suggestions on how to test from Linux if Windows 7 is installed, and
> if so is it 32 or 64-bit.
> Preferably by checking the boot sector - but could also be by mounting
> and checking partitions.
> A solution that worked for all releases of Windows 7 would be great -
> otherwise just Home Premium. This needs to be scripted so a degree of
> precision is appreciated.
> No - I don't have a copy of Windows 7 any more. (and I'd prefer not to
> have to download one of the VirtualBox images that MS give-away).
> Kind regards
More information about the linux