Q. How can I run a check in a batch file for the architecture type of a Windows installation?

A. Many times you get two versions of a program, one for 32-bit and one for 64-bit. I had this exact situation with the Data Protection Manager client and wanted to automate deployment through group policy. I therefore created the script below. Just change the actions to meet your needs.

@echo off
echo Detecting OS processor type

echo 32-bit OS
\\savdaldpm01\ProtectionAgents\RA\3.0.7558.0\i386\DPMAgentInstaller_x86 /q
goto END
echo 64-bit OS
\\savdaldpm01\ProtectionAgents\RA\3.0.7558.0\amd64\DPMAgentInstaller_x64 /q

"C:\Program Files\Microsoft Data Protection Manager\DPM\bin\setdpmserver.exe" -dpmservername savdaldpm01.savilltech.net
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.