Set-RDMEntryAttachment
Synopsis
Save attachments
Syntax
__AllParameterSets
Set-RDMEntryAttachment [-InputObject] <PSConnectionAttachment[]> [-AllowExport <bool>]
[-Description <string>] [-Password <securestring>] [-Title <string>] [-Refresh]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Save attachments. Only Devolutions Server and Devolutions Cloud workspaces support attachment. The user must have the right to edit the attachments.
Examples
Example 1
PS C:\> Get-RDMEntry -Name EntryA | Get-RDMEntryAttachment | Set-RDMEntryAttachment -AllowExport $falsePrevent the export of all EntryA's attachments.
Example 2
Change the title, description, and password of the attachment named AttachmentA of the entry EntryA
Parameters
-AllowExport
Allow or disallow the attachment to be exported.
-Confirm
Prompts you for confirmation before running the cmdlet.
-Description
Attachment description.
-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.
-InputObject
Attachments to save. Can be obtained from Get-RDMEntryAttachment.
-Password
Attachment password.
-Refresh
Refresh the entries in the vault. For modification in bulk, use Update-RDMEntries after the modifications instead of this switch.
-Title
Attachment title.
-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.PSConnectionAttachment
Array of PSConnectionAttachment to save. Can be obtained from Get-RDMEntryAttachment.
Notes
For more information, type "Get-Help Set-RDMEntryAttachment -detailed". For technical information, type "Get-Help Set-RDMEntryAttachment -full".
Last updated
Was this helpful?