SerialNumber
Gets the serial number of the license key.
Syntax
int SerialNumber {get;}
Property value
The serial number for a specified license key.
Discussion
The serial number provides a mechanism for tracing which license keys were issued to a recipient.
Example
The following code sample illustrates using SerialNumber
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 "--", "Serial \#:", objKey.SerialNumber
wScript.Echo "Seats:", objKey.Count
end if
i = i + 1
loop
next
wScript.Echo ""
next
...