ProvisioningPrepJob method of the Win32_RDMSVirtualDesktopCollection class
Creates a virtual desktop provisioning job.
Syntax
uint32 ProvisioningPrepJob(
[in] string CollectionAlias,
[in] string VMHostName,
[in] string VMName,
[in] string ExportToLocation,
[in] boolean bSysPrep,
[in] string MachineName,
[in] string UserName,
[in] string Password,
[out] string JobGuid
);
Parameters
-
CollectionAlias [in]
-
The alias of the collection that hosts the virtual desktop.
-
VMHostName [in]
-
The virtual machine host name.
-
VMName [in]
-
The name of the virtual machine.
-
ExportToLocation [in]
-
The full path the location to export the provisioning job.
-
bSysPrep [in]
-
Indicates whether the provisioning job represents a Sysprep deployment.
-
MachineName [in]
-
The machine name of the computer that hosts the virtual machine.
-
UserName [in]
-
The user name of the administrator of the virtual machine.
-
Password [in]
-
The password of the administrator of the virtual machine.
-
JobGuid [out]
-
The GUID that uniquely identifies the provisioning job.
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 2008 |
Namespace |
Root\cimv2\rdms |
MOF |
|
DLL |
|