When the RunAsynchronously identifier is specified, this GUID is returned and provides the task identifier.
This object provides details of the task that was run and contains the following information:
The identifier for the task that was performed.
Indicates whether the task is still processing or is complete.
The name of the host on which the task is running or was run.
The date and time that the task was initiated.
The type of task. For new remove-VM tasks, this is always "RemoveVirtualMachine".
The list of metadata stored for the task. For new tasks, this is empty until metadata is added.
Indicates the status of the workflow that is used to process the task.
The name of the provisioning scheme that the task is for.
The unique identifier of the provisioning scheme that the task is for.
The state of the task. This can be any of the following:
Indicates that the task is in its initial state.
Indicates that the task is locating information from other services.
Indicates that the required hosting unit could not be located.
Indicates that the required provisioning scheme could not be located.
Indicates that the task is at the provisioning stage.
Indicates that the required identity pool could not be located.
Indicates that the provisioning scheme already has another task running.
Indicates that the task is finalizing.
Indicates that the task is complete.
Indicates that the task is complete but there were errors. Specific details of errors are included with each failed virtual machine.
Indicates that the task is removing virtual machines from the hypervisor.
Job failed for reasons specified in TaskStateInformation.
Indicates that the task was stopped by user intervention (using Stop-ProvTask)
Provides more detailed information about the current task state.
The total number of virtual machines that the task is trying to remove.
The number of virtual machines that the task has removed so far. Details of the machines that have been removed are in the RemovedVirtualMachines parameter.
The number of virtual machines that the task has failed to remove. Details of the machines that failed are in the FailedVirtualMachines parameter.
The domain-qualified AD Account name of the machine.
The AD account SID of the machine account.
A collection of handled error states which caused the provisioning to fail.
The type of exception this object represents
The exception message
The full exception content including stack trace
Information relating to any contributing error state
The virtual machine identifier in the hypervisor.
The display name of the virtual machine in the hypervisor.
See FailedVirtualMachines for details of the object parameters.
Gives an estimate of the number of virtual machines processed, averaging over virtual machines that were both partly and completely processed.