Skip to main content

Report Microsoft Office version in the Auditor and Microsoft Licensing reports

Atera detects which Microsoft Office version is installed on a device and shows it on the device page, in the Auditor and Microsoft Licensing reports, and through the API. This article explains where Atera reads the Office version from, and why the name shown can differ from the Office product actually installed.

 

How Atera Reads the Office Version

Atera is using Microsoft specifically created tool to manage volume activation of Office called Office Software Protection Platform script (ospp.vbs). 
You can review their documentation here. 

Based on the Office version, and if the machine is 32/64 bit, this is how Atera fetches the Office version:
Office 2016/2019 (32-bit) on a 32-bit version of Windows
cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus
Office 2016/2019 (32-bit) on a 64-bit version of Windows
cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus
Office 2016/2019 (64-bit) on a 64-bit version of Windows
cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus
Office 2013 (32-bit) on a 32-bit version of Windows
cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus
Office 2013 (32-bit) on a 64-bit version of Windows
cscript "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" /dstatus
Office 2013 (64-bit) on a 64-bit version of Windows
cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus
Office 2010 (32-bit) on a 32-bit version of Windows
cscript "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" /dstatus
Office 2010 (32-bit) on a 64-bit version of Windows
cscript "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" /dstatus
Office 2010 (64-bit) on a 64-bit version of Windows
cscript "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" /dstatus

Atera queries the devices for Office license each day (once every 24 hours) using the above scripts.

 

If OSPP.VBS Is Missing: vNextDiag.ps1

In case, the OSPP.VBS file is missing, or no subscription can be found in this file, we will query the vNextDiag.ps1 file. 
Office version 2016 and up (64-bit) on a 64-bit version of Windows
powershell.exe -file "C:\Program Files\Microsoft Office\Office16\vNextDiag.ps1"
Office version 2016 and up (32-bit) on a 32-bit version of Windows
powershell.exe -file "C:\Program Files(x86)\Microsoft Office\Office16\vNextDiag.ps1"
Office version 2016 and up (32-bit) on a 32-bit version of Windows
powershell.exe -file "C:\Program Files\Microsoft Office\Office16\vNextDiag.ps1"

 

If Both Scripts Are Missing: Registry Keys

If ospp.vbs and vNextDiag.ps1 files are missing or if they were removed, we're fetching the Office version from the following registry keys:

32-bit OS
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\X.0\Registration\{RegistrationId}\ConvertToEdition 
or 
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\X.0\Registration\{RegistrationId}\ProductName

64-bit OS
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\X.0\Registration\{RegistrationId}\ConvertToEdition
or 
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\X.0\Registration\{RegistrationId}\ProductName

 

Office Shows the Wrong Version Name

If a device shows an older Office name than the one installed, the name most likely comes from a leftover registry key. For example, a device running Microsoft 365 Apps for enterprise might show Microsoft Office Professional 2016 on the device page, in reports, and through the API.

When the OSPP.VBS and vNextDiag.ps1 files are missing, Atera reads the Office name from the ConvertToEdition value in the Office Registration registry key. Atera doesn't check whether that product is still installed. A key left behind by an earlier Office installation is reported instead of the current product, even when Click-to-Run data would show the correct one.

The build number comes from the device's installed programs, so the build can be correct while the name is wrong.

This is caused by the registry on the device, not by Atera, so resetting WMI doesn't change the name.

 

Where the Office License Appears

If the license status is LICENSED, Atera will report in the console under Software device information, and in the Auditor and Microsoft Licensing Reports, the product displayed under LICENSE NAME.

mceclip0.png

Software information under the device page: 
mceclip1.png

Auditor report:

mceclip2.png

Microsoft Licensing report:

mceclip3.png

Note: You may get different results from the Software Inventory Report which is fetching the Office version from appwiz.cpl.

 

Office Shows as Unlicensed or Not Installed

Any other license status, such as NOTIFICATIONS or UNLICENSED means that the Office product was not activated as per MS documentation and Atera will not display Office as being licensed in the reports nor show it as being installed, even if locally on the device Office is working properly.

In these cases, you should check the error code to help you troubleshoot the activation issue.

If you see a dialog box that contains an activation notification, an error code is usually displayed at the lower corner. You can then run ospp.vbs /ddescr together with the error code to see the text of the error message. The text will help you better understand the issue and what to do to fix it.

Another way to obtain an error code is to run ospp.vbs /act on the client computer to manually activate Office. If activation fails, an error code will be shown.

Important: Before you run ospp.vbs, ensure that:

  • If you want to run the script on a remote computer, the Windows firewall allows Windows Management Instrumentation (WMI) traffic on the remote computer.
  • The user account you will use is a member of the Administrators group on the computer on which you run the script.
  • You run ospp.vbs script from an elevated command prompt.

You can check this Microsoft troubleshooting guide for more options. 

Was this helpful?