Hi LANdesk experts,
I would need some helps here.
We are using LDMS version = 2016.3 SU02 on windows server 2012 R2 datacenter since while now.
Recently I have found that software name included in device's inventory data are not right formatted. For example for Microsoft dot Net framework I found many entries related to language pack and one of this entry has the name Microsoft .NET Framework 4.6.1 (????)
I think the problem is coming from this language pack Microsoft .NET Framework 4.6.1 (简体中文) since all other language pack are included in the inventory in the right text encoding.
Please note that this is not the only software name there are many others.
I did a small troubleshooting and this is what I found: (the troubleshooting was made on the same computer and just for the mentioned software)
1- I checked installed software from the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall and the name is saved with the right text encoding
2- I checked the "invdelta.dat" file and from there I found out that the name of these software (with weird characters in their name) are the same as in LANDesk database. I checked the encoding of this file with notepad (ANSI) and with notepad++(UTF-8 Withou BOM)
3- I started ldiscn32.exe with these switches ldiscn32.exe /NTT=<coreserver>:5007 /s=<coreserver> /I=http://<coreserver>/ldappl3.ldz /O=inventory.scn -sync. I opened the "inventory.scn" file with notepad and notepad++ (encoding is UTF-8) to find that the name of the software contains the same weird caracters as in the database.
4- I enabled the storage feature for LANDesk Inventory service (so the scan file will be saved under \ldscan\storage on the core server) and I checked the inventory file of the same computer where I am performing this troubleshooting to find that the software name contains the same weird characters Microsoft .NET Framework 4.6.1 (????). The encoding of this scan file on the core server is UTF-8
5- Last step was to check the data in the database and it contains the same software name. Please note that the SQL collation is SQL_Latin1_General_CP1_CI_AS
I think that the problem is coming from ldiscn32.exe and how it define text encoding. I don't know what to do else. So if any one can help me that will be good