FetchReportEntries method of the Win32_TSLicenseReport class

Retrieves details of Remote Desktop Services Per User client access licenses (RDS Per User CALs) from the report. Each entry represents a RDS Per User CAL that is currently in use.

Syntax

uint32 FetchReportEntries(
  [in]      uint32                     StartIndex,
  [in, out] uint32                     Count,
  [out]     Win32_TSLicenseReportEntry ReportEntries[]
);

Parameters

StartIndex [in]

Index of the first report entry to be received. The first report entry has an index of zero.

Count [in, out]

Number of report entries to retrieve from the report object. A value of zero indicates that all of the report entries starting at StartIndex are to be retrieved. On return, contains the number of entries in the ReportEntries array.

ReportEntries [out]

Returns an array of Win32_TSLicenseReportEntry classes.

Return value

If the method succeeds, it returns zero. If the method is unsuccessful, it returns a nonzero value. A value of LSERVER_I_NO_MORE_DATA (0x4001) indicates that there are no more report entries.

Remarks

This is not a static method. This method must be called from a per user license usage report object.

You must be a member of the Administrators group to call this method.

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2
MOF
TlsWmiProv.mof
DLL
TlsWmiProv.dll

See also

Win32_TSLicenseReport

Win32_TSLicenseReportEntry