We would like to be able to detect if a user is running either 32-Bit or 64-bit Outlook. Based on the returned value, we'll be running the appropriate script.
Using SCCM, how can we read the value "Bitness" from the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Outlook
WHAT WE'VE TRIED
We tried running a .bat file containing the command
REG QUERY HKLM\SOFTWARE\Microsoft\Office\16.0\Outlook /v "Bitness", but when run from an SCCM package, it cannot read values from any key.
We tried a Powershell Script, all I saw was the working directory briefly pop-up on the screen and the script stopped running.
QUESTION
- Is there a way that SCCM can directly read a value without relying on a script?
- Is there a way to write a script so that SCCM will use it to find the registry value?
Any workable solution not investing in some new piece of software is acceptable.
.bat
can read the key but SCCM can't, that smells like a permissions problem