Get-RDMSessionDocumentStoredInDatabase syntax

Get-RDMSessionDocumentStoredInDatabase syntax

avatar

What is the syntax for Get-RDMSessionDocumentStoredInDatabase?

All Comments (3)

avatar

Hello,

The CmdLet Get-RDMSessionDocumentStoredInDatabase returns a list of documents that are saved in the database.

So here is the syntax to use it :

$sessions = Get-RDMSessionDocumentStoredInDatabase
If you check the content of the $sessions variable, it will look like this :



If you want to export one of these documents into a file, you must know the file type. Please note that for the following example, I know that the document saved in the DOWNHILL.LOC\Acuity2 entry is an Excel file.

[io.file]::WriteAllBytes('c:\temp\testExcel.xlsx', $session[0].Data)
Best regards,

Érica Poirier

avatar

Thanks, now I see what a was doing wrong.
Is there a command for getting attachments?

avatar

Hello,

There is no CmdLet in the Remote Desktop Manager PowerShell module to get the attachments.

I will send your request to our engineering department.

Best regards,

Érica Poirier