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.
This topic is 14 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
pc_doctor
Posts: 61
Last visit: Tue Jan 03, 2012 4:22 am

Best way to detrmine x64 vs x32?

Post by pc_doctor »

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
Last visit: Tue Jan 03, 2012 4:22 am

Best way to detrmine x64 vs x32?

Post by pc_doctor »

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
Last visit: Wed Jul 24, 2013 9:14 am

Best way to detrmine x64 vs x32?

Post by neothwin »

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


Assuming ServerList.txt contains your server list.

Best regards,
User avatar
khdetw
Posts: 1
Last visit: Mon May 04, 2009 10:40 am

Best way to detrmine x64 vs x32?

Post by khdetw »

:: 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
This topic is 14 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked