Can we get a list of what each field is named for Powershell?

Resolved

Can we get a list of what each field is named for Powershell?

avatar

I need to do a lot of find/replacing and found the powershell commands to do it. However, I don't know the unique name for each of the fields and so far my guesses have been wrong. For instance: The domain field in folder properties (which entries in the folder inherit)? And the Username in the folder properties (which entries in the folder inherit). Those two would be great, but a list of all of them would be amazing.

All Comments (7)

avatar

Hello,

Thanks for reaching out, the 2 best options I believe would be to either :

  • Use reverse engineering from the clipboard > copy context menu (see more https://kb.devolutions.net/batch_edit_rdm.html#edit-(special-actions))
    • This will list all non-default value property. So, simply populate a value to see where it sits in the xml structure.
  • Use PowerShell (RDM CmdLet) from Tools, Once you've successfully connected to your data source, you can isolate a single session and list its properties with someting like:


$s = (get-rdmsession)[0]
$s | select-object -property *

You would however need to drill down in certain properties with the latter technique.

I hope this helps.

Best regards,

Alex Belisle

avatar

Hi,

If you are talking about accessible property for our connection object, the easiest way is to preview an entry clipboard copy in RDM.
That will show you the xml properties used to store all the entry's information. For security reasons, not all properties will be accessible, mainly, clear text password.

To preview the xml, you can right-click on an entry in RDM -> Clipboard -> Copy. You can then switch to the preview tab in the opened window.

Hopefully that answers your question, let me know.
Regards

Jonathan Lafontaine

avatar

My colleague Alexandre was faster than me.

Jonathan Lafontaine

avatar

Hi,
I do not get all the properties I am looking for.

This is all I get when using home/copy:

<?xml version="1.0"?>
<ArrayOfConnection>
<Connection>
<ConnectionType>SSHShell</ConnectionType>
<CreatedBy>xxxxxxx</CreatedBy>
<CreationDateTime>2023-02-14T16:55:42</CreationDateTime>
<ID>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</ID>
<Name>Something</Name>
<OpenEmbedded>true</OpenEmbedded>
<UpdateDateTime>2023-02-14T18:07:54</UpdateDateTime>
<UpdatedBy>xxxxxxxxxxxxxxxx</UpdatedBy>
<Terminal>
<Host>Something</Host>
<PrivateKeyPromptForPassPhrase>false</PrivateKeyPromptForPassPhrase>
</Terminal>
<TerminalMac />
</Connection>
</ArrayOfConnection>


How would I get the properties in e.g. advanced to set KeepAlive and the timeout?

avatar

Unfortunately, for optmization purposes, fields with default values are not exported in our XMLs.
You'll have to modify the value first for them to show up in the preview XML.

Jonathan Lafontaine

avatar

Haha,
That did it!

Thanks a bunch, especially for the speedy answer.

avatar

My pleasure!

Jonathan Lafontaine