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

Add-RDMPrivateSessionAttachment

Synopsis

Add a new attachment to a session in the user vault

Syntax

__AllParameterSets

Add-RDMPrivateSessionAttachment [-Session] <PSConnection> [-Filename] <string>
 [-Description <string>] [-Password <securestring>] [-Refresh] [-Title <string>]
 [-ForcePromptAnswer <DialogResult[]>] [<CommonParameters>]

Description

Add a new attachment to a session in the user vault. Two parameters are required: Filename, path to the file to attach, and Session, where the file is attached. Additional information can be provided via the title and description. The attachment can be protected by a password. Only advanced workspaces support attachment. The user must have the permission to add attachments.

Examples

Example 1

PS C:\> $entry = Get-RDMPrivateSession -Name EntryA;
        Add-RDMPrivateSessionAttachment -Filename 'C:\my\path\filename.ext' -Session $entry

Attach the file filename.ext, located in 'C:\my\path', to the session named EntryA.

Example 2

Attach the file filename.ext, located in 'C:\my\path', to the session named EntryA. The attachment will be protected by the password entered with Read-Host. Additional information is stored. The refresh parameter will update the RDM UI.

Parameters

-Description

Attachment description.

-Filename

Attachment filename.

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

-Password

Attachment password.

-Refresh

Send refresh notification to Remote Desktop Manager application.

-Session

Session to add the attachment to.

-Title

Attachment title.

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.

Notes

For more information, type "Get-Help Add-RDMPrivateSessionAttachment -detailed". For technical information, type "Get-Help Add-RDMPrivateSessionAttachment -full".

Last updated

Was this helpful?