Forum / Remote Desktop Manager - Support

Get-RDMSessionDocumentStoredInDatabase syntax

  • Create an Issue
  • Cancel

What is the syntax for Get-RDMSessionDocumentStoredInDatabase?

Clock3 yrs

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 :

image

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

signaturesignature

Clock3 yrs

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

Clock3 yrs

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

signaturesignature

Clock3 yrs