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.
Best way to detrmine x64 vs x32?
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.
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.
Best way to detrmine x64 vs x32?
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.
Thank you in advance.
Best way to detrmine x64 vs x32?
wmic /node:@ServerList.txt ComputerSystem get Name,SystemType /format:csv
Assuming ServerList.txt contains your server list.
Best regards,
Assuming ServerList.txt contains your server list.
Best regards,
Best way to detrmine x64 vs x32?
:: 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