New-RDMTask
Synopsis
Create a new task.
Syntax
__AllParameterSets
New-RDMTask [-Name] <string> [-Entry] <Object> [-Comment <string>] [-Description <string>]
[-DueDate <datetime>] [-Priority <int>] [-SetTask] [-Status <string>] [-User <Object>]
[-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]Description
Create a new task. It must have a name and be associated to an entry. This feature is only available for the following workspaces: Devolutions Server, Azure SQL, SQL Server, and SQLite. If the workspace does not support users, the parameter User will be simply ignored. If a virtual folder is involved, the user must have the add and edit rights to save the task.
Examples
Example 1
PS C:\> $task = New-RDMTask TaskName EntryNameCreate a task named TaskName and associated with the entry EntryName. This task is not saved yet, so it is stored in $task.
Example 2
Create a task named ATask associated with the entry AnEntry. The task is assigned to AUsername and its status reflects it. It has a priority of 10 and a desciption of the task. This task is created in the workspace.
Example 3
Create a task named ATask associated with the private entry APrivateEntry. The task is not assigned and its status is the default value 'Open'. Its due date is the fist day of the year 2022. This task is not saved yet, so it is stored in $task.
Example 4
Save a newly created task named ATask and associated with AnEntry without any confirmation prompt.
Example 5
Save a newly created task named ATask and associated with AnEntry. The task is assigned to Username and its status reflects it.
Parameters
-Comment
Add a comment to the task.
-Description
Add the description to the task.
-DueDate
Add a deadline to accomplish the task.
-Entry
Entry the task is assigned to. It can be specified by ID, by name or by PSConnection. Entries in the private vault are accessible.
-ForcePromptAnswer
Switch to use with caution. It will automatically answer prompt asking yes/no, yes/no/cancel, or ok/cancel questions. In case of multiple prompts, multiple values can be passed to this parameter. Here are the accepted values:
Yes: Accept the prompt. Cover the OK and Automatic value.
No: Refuse the yes/no/cancel prompt. "Cancel" is the fallback option if there is no "No" option.
Cancel: Cancel the yes/no/cancel prompt. "No" is the fallback option if there is no "Cancel" option.
-Name
Name of the task.
-Priority
Set the priority of the task. The default value is 1.
-SetTask
Save the task.
-Status
Set the status of the task. By default, the status is Open.
-User
Assign this user to the task. The user can be specified with their name, their email address, their ID or a PSUserInfo. The workspace must support users.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection
The entry obtained from Get-RDMSession or Get-RDMPrivateSession can be piped to the parameter Entry.
Notes
For more information, type "Get-Help New-RDMTask -detailed". For technical information, type "Get-Help New-RDMTask -full".
Last updated
Was this helpful?