Task cmdlets

Last published : Nov 12, 2026
A long-running asynchronous task.
The XenServer PowerShell module provides the following cmdlets for working with Task objects. For the fields and calls of the class itself, see Class: Task in the Management API reference.
Cmdlet Description
Add-XenTask Adds to fields of a Task object.
Get-XenTask Gets the Task objects in the pool.
Get-XenTaskProperty Gets a property of a Task object.
Invoke-XenTask Invokes an operation on a Task object.
New-XenTask Creates a new Task object.
Remove-XenTask Deletes a Task object.
Remove-XenTaskProperty Removes values from fields of a Task object.
Set-XenTask Sets fields of a Task object.
Wait-XenTask Waits for an asynchronous XenServer task to finish.