Type

Gets the license type for a specific license key.

Syntax

LicenseType Type {get;}

Property value

The license type for a license key.

See Type for possible values.

Discussion

The license type indicates whether a specific license key is intended for workstation computers or application servers.

Example

The following code sample illustrates using Type in a script:

...
set objCollection cims.LoadLicenses
for each objLics in objCollection
    for each objLic in objLics 
        set objKeys = objLic.keys
        i = 0
        do while i < objKeys.Count 
            set objKey = objKeys(0) 
            if objKey.isValid then 
                wScript.Echo "License Type", objKey.Type
                wscript.Echo "Serial #:", objKey.SerialNumber
                wScript.Echo "Seats:", objKey.Count
            end if
            i = i + 1
        loop
    next 
    wScript.Echo "" 
next 
...