ProvisioningEnumerateJobs method of the Win32_RDMSVirtualDesktopCollection class

Enumerates virtual desktop provisioning jobs for this service.

Syntax

uint32 ProvisioningEnumerateJobs(
  [in]  uint32 JobType,
  [in]  string CollectionAlias,
  [out] string JobGuids[]
);

Parameters

JobType [in]

An integer that specifies the type of job to enumerate.

This parameter can be set to one of the following values:

0

Running jobs

1

Completed jobs

CollectionAlias [in]

The alias of the virtual desktop collection to enumerate. The default value for this parameter is FALSE, which specifies that all running jobs are to be enumerated.

JobGuids [out]

An array that contains the GUIDs of provisioning jobs to enumerate.

Return value

Returns 0 on success, otherwise returns a WMI error code.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\CIMv2\rdms
MOF
RDManagement.mof
DLL
RDMS.dll

See also

Win32_RDMSVirtualDesktopCollection