UsedCount

Gets the total number of licenses that are currently in use.

Syntax

int UsedCount {get;}

Property value

The total number of licenses that are currently in use.

Discussion

Available licenses become used licenses when computers join the domain.

Exceptions

UsedCount throws an ApplicationException if license information is unavailable because an LDAP error occurred.

Example

The following code sample illustrates using UsedCount in a script:

...  
set objCollection cims.LoadLicenses  
for each objLics in objCollection  
for each objLic in objLics   
wScript.Echo "License Type:", objLic.Type  
wScript.Echo "Seats:", objLic.Count  
wScript.Echo "Used:", objLic.usedCount  
next   
wScript.Echo ""   
next  
...