I am trying to retrieve the environment variable to detect whether the system is 32 or 64 bit. But on 64 bit server the environment variable %processor_architecture%>
%processor_architecture%>
Apologize for the grave dig. However, the processor architecture environmental variable is accessible via powershell ...
$env:PROCESSOR_ARCHITECTURE