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

Send-RDMMessage

Synopsis

Write a new secure message.

Syntax

NewMessage (Default)

Send-RDMMessage [-To] <PSBasicUserWrapper[]> [-Subject] <string> [[-Body] <string>]
 [-Attachment <Object[]>] [-CaseSensitive] [-ExpiresIn <int>] [-ExpiresOn <datetime>]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Reply

Send-RDMMessage [-ReplyTo] <DataSourceMessage> [[-Body] <string>] [-Subject <string>]
 [-Attachment <Object[]>] [-CaseSensitive] [-ExpiresIn <int>] [-ExpiresOn <datetime>]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Description

Write a message. The workspace must be a Devolutions Server or Devolutions Cloud.

Examples

Example 1

Send a secure message to 'FirstName LastName' about 'ASubject'. The detail of the message is 'AMessage'.

Example 2

Fetch a private entry and create a file attachment. Send a secure message to Person A and Person B about 'Why'. The detail of the message is 'AMessage' and two attachments, 'entryA' and the file, are attached.

Example 3

Send a reply to the message 'First Last' sent today about 'Required Connection' to thank him. The subject will be 'Re: Required Connection' and the body, 'Thank you'

Example 4

Send a message to 'person A' with the attachment 'anEntry'. The user Person A won't be found.

Example 5

Fetch a private entry with the cmdlet Get-RDMPrivateSession. It is pointless to modify the stored entry because it will be fetched by its ID. After that, a message will be sent to Person A with the attachment AnEntry.

Parameters

-Attachment

Attachments to add to the message. The supported types are PSMessageAttachment and PSConnection.

-Body

Body text of the message.

-CaseSensitive

The value passed for the user will be case sensitive.

-ExpiresIn

Number of days before the message expires.

-ExpiresOn

Date when the message will expire.

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

-ReplyTo

The subject and a recipient will be added based on the message. The subject can be modified with the Subject parameter.

-Subject

Subject of the message.

-To

The recepients of the message. They can be identified by ID, name, email, or by their PSUserInfo.

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

Devolutions.RemoteDesktopManager.Business.Messages.DataSourceMessage

The message obtained from the Receive-RDMMessage can be piped to the parameter ReplyTo.

Notes

For more information, type "Get-Help Send-RDMMessage -detailed". For technical information, type "Get-Help Send-RDMMessage -full".

Last updated

Was this helpful?