Forum / Remote Desktop Manager - PowerShell Repository

Reverse egineer the API

  • Create an Issue
  • Cancel

Hallo Devolutions Team,

since the API is not well documented I have this request:

Would you be so kind to explain a (reverse engineer) method to me which enables everyone per "GET method" to test the corresponding write functions to fill certain fields with powershell.
It should be possible to simply fill a "test RDP session" with test values by hand and then GET all attributes of that "test RDP session" to find out how to SET it.

Thanks in advance
BR
Steffen

Clock4 yrs

Hello,

A trick for finding the correct property name for any fields is to do a right-click on an entry and select Clipboard->Copy->OK, then paste in a text editor. Next, edit the entry, modify the designated fields and save your modification. Again, do the copy-paste operation and compare the results to find the new property inside the XML code.

Before editing the entry :


<?xml version="1.0"?>
<ArrayOfConnection>
<Connection>
<Events />
<MetaInformation />
<RDP>
<NetworkLevelAuthentication>true</NetworkLevelAuthentication>
<RedirectDirectX>false</RedirectDirectX>
<ScreenSizingMode>FitToWindow</ScreenSizingMode>
<VideoPlaybackMode>Disabled</VideoPlaybackMode>
</RDP>
<RemoteCommand />
<ConnectionType>RDPConfigured</ConnectionType>
<ID>da2685df-71f8-43db-b3cf-cdaf7c1d1e36</ID>
<Name>Downhill Web 1</Name>
<OpenEmbedded>true</OpenEmbedded>
<PinEmbeddedMode>False</PinEmbeddedMode>
<ScreenSize>CurrentWorkAreaSize</ScreenSize>
<SmartSizing>true</SmartSizing>
<Stamp>fcb4d6d9-f242-4942-832e-2c60dd0b24c0</Stamp>
<Url>downhill</Url>
<UsesSerialPorts>false</UsesSerialPorts>
<WakeOnLANPort>7</WakeOnLANPort>
<WebBrowserApplication>IE</WebBrowserApplication>
</Connection>
</ArrayOfConnection>

After editing the entry with these values :
2016+03+17+13+01+07


<?xml version="1.0"?>
<ArrayOfConnection>
<Connection>
<Events />
<MetaInformation />
<RDP>
<NetworkLevelAuthentication>true</NetworkLevelAuthentication>
<RedirectDirectX>false</RedirectDirectX>
<ScreenSizingMode>FitToWindow</ScreenSizingMode>
<VideoPlaybackMode>Disabled</VideoPlaybackMode>
</RDP>
<RemoteCommand />
<AlternateShell>OtherShell.exe</AlternateShell>
<ConnectionType>RDPConfigured</ConnectionType>
<ID>4bbd6007-b4ab-40c8-b4af-6283acc9658a</ID>
<Name>Downhill Web 1</Name>
<OpenEmbedded>true</OpenEmbedded>
<PinEmbeddedMode>False</PinEmbeddedMode>
<ScreenSize>CurrentWorkAreaSize</ScreenSize>
<ShellWorkingDirectory>\\OtherServer\OtherPath</ShellWorkingDirectory>
<SmartSizing>true</SmartSizing>
<Stamp>3e886931-b7b8-42c8-a8ae-c61ac206351c</Stamp>
<Url>downhill</Url>
<UsesSerialPorts>false</UsesSerialPorts>
<WakeOnLANPort>7</WakeOnLANPort>
<WebBrowserApplication>IE</WebBrowserApplication>
</Connection>
</ArrayOfConnection>

You can also refer to this post about Basic properties of sessions.


Best regards,



Érica Poirier

signaturesignature

2016-03-17_13-01-07.png
Clock4 yrs

Perfect!

Thank you!

Clock4 yrs