Update-RDMEntryAttachment
Synopsis
Update an entry's attachment file
Syntax
__AllParameterSets
Update-RDMEntryAttachment [-InputObject] <PSConnectionAttachment> [-Filename] <string> [-Refresh]
[-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Update an entry's attachment file. Only Devolutions Server and Devolutions Cloud workspaces support attachment. The user must have the permission to edit attachments.
Examples
PS C:\> Get-RDMEntry -Name EntryA | Get-RDMEntryAttachment -Title 'UniqueTitle' | Update-RDMEntryCommand -Filename 'revisedFile.txt' -RefreshUpdate the document of the attachment 'UniqueTitle' with the file 'revisedFile.txt' in the current session directory.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
-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.
-InputObject
Attachment to update. Can be obtained from Get-RDMEntryAttachment.
-Refresh
Refresh the entries in the vault. For modification in bulk, use Update-RDMEntries after the modifications instead of this switch.
-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
PSConnectionAttachment to update. Can be obtained from Get-RDMEntryAttachment.
Notes
For more information, type "Get-Help Update-RDMEntryAttachment -detailed". For technical information, type "Get-Help Update-RDMEntryAttachment -full".
Last updated
Was this helpful?