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

Update-RDMEntryDocument

Synopsis

Update the document of the specified entry.

Syntax

Filename

Update-RDMEntryDocument [-InputObject] <PSConnection> [-Filename] <string> [-Refresh]
 [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Attachment

Update-RDMEntryDocument [-InputObject] <PSConnection> [-Attachment] <PSConnectionAttachment>
 [-Refresh] [-ForcePromptAnswer <DialogResult[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Update the document of the specified entry. The entry must of the type Document, and the document must be stored in the database. The updated document must be of the same type as the existing one. It must also respect the maximum file size defined in the system settings. This cmdlet cannot be used offline. The workspace must support attachments. The user must have the right to modify the attachments.

Examples

Example 1

PS C:\> $entry = Get-RDMEntry -Name MyDocumentEntry;
    Update-RDMEntryDocument -InputObject $entry -Filename 'C:\Mytestfile.txt' -Refresh

Update the document of the entry MyDocumentEntry with the file 'C:\Mytestfile.txt'

Example 2

Update the document of the entry MyDocumentEntry with the attachment 'My Attachment File' present in the entry MyEntryWithAttachment.

Parameters

-Attachment

Attachment to update the document to.

-Confirm

Prompts you for confirmation before running the cmdlet.

-Filename

New document 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

Entry to update the document to.

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

Document entry obtained from Get-RDMEntry

Notes

For more information, type "Get-Help Update-RDMEntryDocument -detailed". For technical information, type "Get-Help Update-RDMEntryDocument -full".

Last updated

Was this helpful?