Users

All Posts (6)

avatar

kevt7

Execute a PowerShell Prior to Open a Connection

avatar
avatar
avatar

Thankyou for the quick reply.

I have tried your suggestion, if I use that code in a standalone powershell session then it works. However, when placed in the Before Open event, the entry is not changed.

This is my code - I hard coded the session_id to make sure there was no issue with variable substitution

If I run this in standalone powershell it works, but in the Event Before Open powershell script the value is not stored.

         Import-Module Devolutions.PowerShell
         $session = Get-RDMSession | where-Object {$_.id -eq "ca9a3250-a3f9-411f-97c8-63cba6a03fa5"}
         $session.VMRC.VMid = "TEST"
         Set-RDMSession $session -Refresh

I have noticed before that if I change an entry in the GUI whilst the entry is open, the changes are lost. I had always assumed that this was intended behaviour, but could you confirm this? Is that something to do with my data source? I am using Dropbox (Local).

Thanks

Execute a PowerShell Prior to Open a Connection

avatar
avatar
avatar

In the documentation for the event: execute Powershell script before open, it says:

Using the $RDM.connection property, the script temporarily changes any of the session properties in the context of the session launch only. When the session is closed, the properties revert back to their original values.

This works fine.

However, is there a way to update the entry permanently using the 'before open' script?

I tried using $RDM.Save(), but the entry does not change.

RDM Free powershell module

avatar
avatar
avatar
avatar

I am using RDM Free version. I am trying to access a session using the powershell module, but I am getting "connection not found" when I run get-rdmsession :-

PS C:\Program Files (x86)\Devolutions\Remote Desktop Manager Free > Get-RDMSession
Get-RDMSession : Connection not found.
At line:1 char:1
+ Get-RDMSession
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-RDMSession], Exception
    + FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.GetRDMSessionCommand

This is my current data source :-

PS C:\Program Files (x86)\Devolutions\Remote Desktop Manager Free > Get-RDMCurrentDataSource


ID          : fb7d07f3-14b7-4ab5-a416-ff234616f28e
IsConnected : True
IsOffline   : False
Name        : Local Data Source
Type        : SQLite

So, am I missing something, or is it not possible to do this with RDM Free ??

Thanks

Kevin Heap.

Web session (chrome) loses web site settings after disconnect

avatar
avatar
avatar

Great! Thanks for checking it out.

KH

Web session (chrome) loses web site settings after disconnect

avatar
avatar
avatar

I use Vmware VCSA html5 web client to access VCSA with an RDM web session based on Chrome.

Originally when I first started using RDM a few months ago, it worked just fine. In VCSA you can 'switch theme' to use a Dark Theme instead of the default. I much prefer the Dark Theme. The VCSA web client remembers your setting so that the next time you log in you start in Dark Theme if that is what you had selected. Additionally the VCSA web client remembers various things about your session and restores them - such as the VM you last had selected in the Hosts & Clusters tree.

Recently when starting a web session to the VCSA web client it now always starts with a completely default session. Dark Theme has gone and no state from the previous login is restored. Yes I can 'switch themes' again but frankly thats a damn nuisance to have to do every time you start a session.

I did some investigation and it seems that the VCSA web client stores the user settings in the browser's 'local storage'. Using Chrome outside of RDM the local storage persists and so sessions restore to the last used state on login, but using Chrome within RDM local storage is always empty when opening a new connection. Local storage is retained if I log out of VCSA and then log in again without closing the RDM tab, but if I close the tab then when opening the connection again local storage is empty so VCSA is back to defaults.

I think this might have started after an update to RDM although I cannot be certain.

If there is an option, or an entry setting I should check then please let me know. The only entry setting which I thought might be relevent is 'incognito' mode - but that is definitely not turned on.

I would be grateful if the original behaviour could be restored. It occurs to me that other web sites may have similar issues if they rely on the browser's local storage rather than cookies to save user data.

Kind Regards,

Kevin Heap.

variables and custom fields

avatar
avatar
avatar
avatar
avatar

I have been trying to find information and documentation on the use of variables and custom fields. There doesn't seem to be any documentation on custom fields or variables either in the 'knowledge base' or in the 'help'.

In particular I would like a list of variable names which are available.

Also, I wanted information on how to reference a custom field. I eventually discovered that I can get the value of a custom field with $CUSTOM_FIELD1$ for the custom field 1, but I don't seem to be able to reference the custom field by name if I have set the field to have my own name for it.

I found a forum post which had the following links - but the links don't work :-

http://help.remotedesktopmanager.com/settings_information_customfields.htm#

http://help.remotedesktopmanager.com/settings_variables.htm

I would appreciate being directed to the new location for these links.

Thanks..

K Heap.

1 - 6 of 6 items