Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.4 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Plugins:MSofficeKey not retrieving 2013 keys

Hi, my collegue has followed the plugin guide for MSofficeKey and we thought it was working fine until we noticed that it is not retriveing any Office 2013 keys.

In the results it shows the Office icon but it is greyed out and we cannot click on it to see the results. Any other verson of Office displays just fine. Is there something we could check to establish what is causing this?

Thanks in advance.

asked Sep 22, 2014 in External plugins by hgp-it (370 points)
edited Sep 23, 2014 by hgp-it

2 Answers

0 votes
Can anyone help with this please?
answered Sep 23, 2014 by hgp-it (370 points)
0 votes

Solved!! play around with the msofficekey.vbs .

1) getOffice16Infos 

getOffice16Infos "15"

getOffice16Infos "16"

2) Sub getOffice16Infos

Sub getOffice16Infos(Ver)

3) result = WshShell.Run("cmd /c cscript ""C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS"" /dstatus > C:\output.txt", 0, true)

result = WshShell.Run("cmd /c cscript ""C:\Program Files (x86)\Microsoft Office\Office" & Ver & "\OSPP.VBS"" /dstatus > C:\output.txt", 0, true)

4) result = WshShell.Run("cmd /c cscript ""C:\Program Files\Microsoft Office\Office16\OSPP.VBS"" /dstatus > C:\output.txt", 0, true)

result = WshShell.Run("cmd /c cscript ""C:\Program Files\Microsoft Office\Office" & Ver & "\OSPP.VBS"" /dstatus > C:\output.txt", 0, true)

answered Jun 29, 2017 by nshong (180 points)
 
Powered by Question2Answer
...