List of property names for PowerShell script

We are often asked for a full list of property names and it is hard to provide for multiple reasons. The most effective approach remains examining the XML structure of a relevant entry to ascertain the field names.

Reverse engineering an entry's structure

  1. Create an entry of the needed type, add only mandatory data at this time. Click OK to save the entry.
  2. Right-click the entry, then use Clipboard – Copy.
  3. In the dialog that appears, switch to the Preview tab, copy the XML structure to a text file. This is the BEFORE.
  4. Manually perform the modification to the entry that should be automated using PowerShell, save the entry.
  5. Using Clipboard – Copy, save the modified XML to another file. This is the AFTER.
  6. Compare the two files with a difference tool, the fields that have changed and the values that have been assigned will indicate what the script should do.

Tips and tricks

  • To find properties and paths, reverse engineer the session XML file format. Create a sample session in Remote Desktop Manager and export it using the right click menu Import/Export – Export Session (.rdm). Once exported, open the .rdm file with an editor. Browse the XML structure to find the property path and name.
  • To list all properties of an entry, pipe the session object to Get-Member cmdlet.
$session = Get-RDMSession -Name "MyRDPSession"  
$session | Get-Member
Give us Feedback