Mikey! wrote:
Has this been added yet? Last message was about a year ago. It would be great to differentiate x32 and x64 bit office installs when you are trying to convert any x32 bit installs to x64 bit...
Thanks!
Mike
Not sure if this has been added, however registry values exist to provide the 'bitness' of an install in order to do so on your end if necessary. You could create a registry scan entry to look for these particular values. Perhaps even run a script in your environment if you have multiple versions of office and are looking to sort on one field. I did this very quickly as an example. I do not have the actual registry keys, nor did I test it, but I would think something like this would work.
#Variables
#First two are for creation of future registry key. The rest should be appropriate key value locations you need to query.
$officeVersion = notScanned
$pathToWriteTo = "hklm:\whatever\you\want\to\query\later\on"
$office2010x86 = test-path "hklm:whatever\the\local\of\the\value\is"
$office2010x64 = test-path "hklm:whatever\the\local\of\the\value\is"
$office2013x86 = test-path "hklm:whatever\the\local\of\the\value\is"
$office2013x64 = test-path "hklm:whatever\the\local\of\the\value\is"
$office2016x86 = test-path "hklm:whatever\the\local\of\the\value\is"
$office2016x64 = test-path "hklm:whatever\the\local\of\the\value\is"
#Go through each. I only did the first three. Off the top of my head I'd say in reverse order so that if you have upgraded over time and multiple keys exist that it just pulls
#the most recent key and then stops
If ( $office2016x64 -eq $True ) {
$officeVersion = "Office 2016 x64"
New-Item -Path $pathToWriteTo -Name OfficeVersion -Value $officeVersion
} ElseIf ( $office2016x86 -eq $True ) {
$officeVersion = "Office 2016 x86"
New-Item -Path $pathToWriteTo -Name OfficeVersion -Value $officeVersion
} ElseIf ( $office2013x64 -eq $True ) {
$officeVersion = "Office 2013 x64"
New-Item -Path $pathToWriteTo -Name OfficeVersion -Value $officeVersion
} Else {
exit
}
You then scan for the value of $pathToWriteTo\$OfficeVersion within Lansweeper (the real name, not the variables) and you'll have an output that you can query in a report.
EDIT: Fixed some grammatical stuff that was driving me crazy.