For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RDMTask

Synopsis

Save or update a task.

Syntax

__AllParameterSets

Set-RDMTask [-Task] <PSTask> [-Comment <string>] [-Description <string>] [-DueDate <datetime>]
 [-Force] [-Name <string>] [-Priority <int>] [-Status <string>] [-UnassignUser] [-User <Object>]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Save or update a task of the current workspace. 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 tasks. To modify fields, this cmdlet parameters can be used or the PSTask can be modified directly. The confirmation impact (ConfirmImpact) is low.

Examples

Example 1

PS C:\> Get-RDMTask -Name ATask | Set-RDMTask -Comment "Task completed" -Status Closed

Add the comment "Task completed" to task ATask and close it. If the name is not unique, all tasks named ATask will have the modifications.

Example 2

Save a newly created task named ATask and associated with AnEntry without any confirmation prompt.

Example 3

Unassign all the tasks assigned the user AUser.

Example 4

Store the uniquely named task ATask in $task. Add a value to the CustomField1 and save the modification using the only positional parameter.

Example 5

Using the WhatIf and Verbose parameters, it will allow to determine if the task is created or updated and where exactly (workspace name > entry name > task name). No modification will happen.

Parameters

-Comment

Modify the comment of the task.

-Confirm

Prompts you for confirmation before running the cmdlet.

-Description

Modify the description of the task.

-DueDate

Specify the deadline to accomplish the task.

-Force

The task will be saved or created without confirmation.

-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

New name for the task.

-Priority

Modify the priority of the task.

-Status

Modify the status of the task.

-Task

Task to add or modify.

-UnassignUser

Remove the user assigned to the task.

-User

Assign this user to the task. The user can be specified with their name, their email address, their ID or a PSUserInfo.

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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.PSTask

The task obtained from Get-RDMTask can be piped to the parameter Task.

Notes

For more information, type "Get-Help Set-RDMTask -detailed". For technical information, type "Get-Help Set-RDMTask -full".

Last updated

Was this helpful?