List of property names for PowerShell script
Last updated
Was this helpful?
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.
Create an entry of the needed type, add only mandatory data at this time. Click OK to save the entry.
Right-click the entry, then use Clipboard – Copy.
In the dialog that appears, switch to the Preview tab, copy the XML structure to a text file. This is the BEFORE.
Manually perform the modification to the entry that should be automated using PowerShell, save the entry.
Using Clipboard – Copy, save the modified XML to another file. This is the AFTER.
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.
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-MemberLast updated
Was this helpful?
Was this helpful?