I am working on an application that uses the automation interface to work with Office documents. This application will be run on a Windows Server environment which is accessed by clients using RDP (Remote Desktop). In order for Office to work from RDP, it needs to be activated with a Terminal Services license key. If Office is not licensed in this way, I need to show an error to the user.
My question is: how can I detect if Office is activated with a Terminal Services license key? I tried using ospp.vbs and slmgr.vbs but I couldn't find a way to detect if Office is activated with a Terminal Services license.