fusioninventory / fusioninventory-agent

FusionInventory Agent
http://fusioninventory.org/
GNU General Public License v2.0
252 stars 125 forks source link

Can't get MS Office licences #957

Open Alexmothe93 opened 2 years ago

Alexmothe93 commented 2 years ago

On some Windows 10 computers, for not known reasons, FusionInventory is unable to get the Microsoft Office partial license key (versions 2013, 2016 or 2019). Issue happen on 2.4.2 (64 bits) agent version. Tested with 2.6 (64 bits, and 32 bits) version, same issue, but I have one error in the agent log (debug mode 2) : [Thu Oct 21 17:37:59 2021][debug] Running FusionInventory::Agent::Task::Inventory::Win32::License [Thu Oct 21 17:37:59 2021][debug] unexpected error in FusionInventory::Agent::Task::Inventory::Win32::License: Can't use string ("0x00000001") as a HASH ref while "strict refs" in use at C:\Program Files (x86)\FusionInventory-Agent/perl/agent/FusionInventory/Agent/Task/Inventory/Win32/License.pm line 139. No error when the license is correctly get. [Thu Oct 21 17:52:09 2021][debug] Running FusionInventory::Agent::Task::Inventory::Win32::License [Thu Oct 21 17:52:09 2021][debug2] Looking for SoftwareLicensingProduct class WMI objects

License is visible when executing the following WMI request : select * from SoftwareLicensingProduct WHERE ApplicationID = '0ff1ce15-a989-479d-af46-f275c6370663'

Nicolas-ld commented 2 years ago

I ave the same problem on some Windows 10 computer and Microsoft Office 2019 license.

Thanks.