Best way to detrmine x64 vs x32?

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
pc_doctor
Posts: 61
Joined: Fri Jun 13, 2008 7:49 am

Best way to detrmine x64 vs x32?

Post by pc_doctor » Mon Mar 23, 2009 11:38 am

I admin mutliple Windows 2003 Servers and more and more of them are being converted to x64. Is there an easy way to determine the OS version (x64 or x32) in a batch file?

Thank you in advance.

User avatar
pc_doctor
Posts: 61
Joined: Fri Jun 13, 2008 7:49 am

Best way to detrmine x64 vs x32?

Post by pc_doctor » Mon Mar 23, 2009 11:38 am

I admin mutliple Windows 2003 Servers and more and more of them are being converted to x64. Is there an easy way to determine the OS version (x64 or x32) in a batch file?

Thank you in advance.

User avatar
neothwin
Posts: 1
Joined: Sun Mar 03, 2013 12:42 pm

Best way to detrmine x64 vs x32?

Post by neothwin » Tue Apr 07, 2009 1:55 pm

wmic /node:@ServerList.txt ComputerSystem get Name,SystemType /format:csv


Assuming ServerList.txt contains your server list.

Best regards,

User avatar
khdetw
Posts: 1
Joined: Mon May 04, 2009 10:36 am

Best way to detrmine x64 vs x32?

Post by khdetw » Mon May 04, 2009 10:40 am

:: Determine if the machine is 64 bit if "%PROCESSOR_ARCHITECTURE%"=="AMD64" GOTO 64BIT:: 32 bit instructions~~~GOTO END:64BIT:: 64 bit instructions~~~GOTO END:END@echo done

Locked