SoftwareLicensingProduct - WMI sample in VBScript
The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.
On this site, you can find many WMI samples.
The SoftwareLicensingProduct WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
SoftwareLicensingProduct
Example(s)
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * From SoftwareLicensingProduct") For Each objItem in colItems WScript.Echo "ADActivationCsvlkPid:" & objItem.ADActivationCsvlkPid WScript.Echo "ADActivationCsvlkSkuId:" & objItem.ADActivationCsvlkSkuId WScript.Echo "ADActivationObjectDN:" & objItem.ADActivationObjectDN WScript.Echo "ADActivationObjectName:" & objItem.ADActivationObjectName WScript.Echo "ApplicationID:" & objItem.ApplicationID WScript.Echo "Description:" & objItem.Description WScript.Echo "DiscoveredKeyManagementServiceMachineName:" & objItem.DiscoveredKeyManagementServiceMachineName WScript.Echo "DiscoveredKeyManagementServiceMachinePort:" & objItem.DiscoveredKeyManagementServiceMachinePort WScript.Echo "EvaluationEndDate:" & objItem.EvaluationEndDate WScript.Echo "ExtendedGrace:" & objItem.ExtendedGrace WScript.Echo "GenuineStatus:" & objItem.GenuineStatus WScript.Echo "GracePeriodRemaining:" & objItem.GracePeriodRemaining WScript.Echo "ID:" & objItem.ID WScript.Echo "IsKeyManagementServiceMachine:" & objItem.IsKeyManagementServiceMachine WScript.Echo "KeyManagementServiceCurrentCount:" & objItem.KeyManagementServiceCurrentCount WScript.Echo "KeyManagementServiceFailedRequests:" & objItem.KeyManagementServiceFailedRequests WScript.Echo "KeyManagementServiceLicensedRequests:" & objItem.KeyManagementServiceLicensedRequests WScript.Echo "KeyManagementServiceLookupDomain:" & objItem.KeyManagementServiceLookupDomain WScript.Echo "KeyManagementServiceMachine:" & objItem.KeyManagementServiceMachine WScript.Echo "KeyManagementServiceNonGenuineGraceRequests:" & objItem.KeyManagementServiceNonGenuineGraceRequests WScript.Echo "KeyManagementServiceNotificationRequests:" & objItem.KeyManagementServiceNotificationRequests WScript.Echo "KeyManagementServiceOOBGraceRequests:" & objItem.KeyManagementServiceOOBGraceRequests WScript.Echo "KeyManagementServiceOOTGraceRequests:" & objItem.KeyManagementServiceOOTGraceRequests WScript.Echo "KeyManagementServicePort:" & objItem.KeyManagementServicePort WScript.Echo "KeyManagementServiceProductKeyID:" & objItem.KeyManagementServiceProductKeyID WScript.Echo "KeyManagementServiceTotalRequests:" & objItem.KeyManagementServiceTotalRequests WScript.Echo "KeyManagementServiceUnlicensedRequests:" & objItem.KeyManagementServiceUnlicensedRequests WScript.Echo "LicenseDependsOn:" & objItem.LicenseDependsOn WScript.Echo "LicenseFamily:" & objItem.LicenseFamily WScript.Echo "LicenseIsAddon:" & objItem.LicenseIsAddon WScript.Echo "LicenseStatus:" & objItem.LicenseStatus WScript.Echo "LicenseStatusReason:" & objItem.LicenseStatusReason WScript.Echo "MachineURL:" & objItem.MachineURL WScript.Echo "Name:" & objItem.Name WScript.Echo "OfflineInstallationId:" & objItem.OfflineInstallationId WScript.Echo "PartialProductKey:" & objItem.PartialProductKey WScript.Echo "ProcessorURL:" & objItem.ProcessorURL WScript.Echo "ProductKeyID:" & objItem.ProductKeyID WScript.Echo "ProductKeyID2:" & objItem.ProductKeyID2 WScript.Echo "ProductKeyURL:" & objItem.ProductKeyURL WScript.Echo "RequiredClientCount:" & objItem.RequiredClientCount WScript.Echo "TokenActivationAdditionalInfo:" & objItem.TokenActivationAdditionalInfo WScript.Echo "TokenActivationCertificateThumbprint:" & objItem.TokenActivationCertificateThumbprint WScript.Echo "TokenActivationGrantNumber:" & objItem.TokenActivationGrantNumber WScript.Echo "TokenActivationILID:" & objItem.TokenActivationILID WScript.Echo "TokenActivationILVID:" & objItem.TokenActivationILVID WScript.Echo "TrustedTime:" & objItem.TrustedTime WScript.Echo "UseLicenseURL:" & objItem.UseLicenseURL WScript.Echo "ValidationURL:" & objItem.ValidationURL WScript.Echo "VLActivationInterval:" & objItem.VLActivationInterval WScript.Echo "VLActivationType:" & objItem.VLActivationType WScript.Echo "VLActivationTypeEnabled:" & objItem.VLActivationTypeEnabled WScript.Echo "VLRenewalInterval:" & objItem.VLRenewalInterval WScript.Echo "" WScript.Echo "########" WScript.Echo "" Next