I am testing out the RDM password server and installed a trial version on my local machine. It's working good as I can see from the web based as well as WinForms based applications. But my original need is to work with Powershell scripting. When I issue the powershell command, say, Get-RDMUser, it throws the following exception:
PS C:\Windows\System32\WindowsPowerShell\v1.0> get-rdmuser
Get-RDMUser : Cannot retrieve the dynamic parameters for the cmdlet. Cannot process argument because the value of argum
ent "validValues" is out of range. Change argument "validValues" to a value that is within range.
Parameter name: validValues
Actual value was System.String[].
At line:1 char:1
+ get-rdmuser
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-RDMUser], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,RemoteDesktopManager.PowerShellModule.GetRDMUserCommand
Can you help?
Hello,
What version of RDM are you running?
Is it working inside RDM via the Tools -> PowerShell feature?
Best regards,
Jeff Dagenais
The version is 2020.2.18.0 64 bit. And, it works through the Tools>Powershell inside RDM.
Kind regards
Hello,
Have you tried to set the current data-source?
Set-RDMCurrentDataSource -DataSource (Get-RDMDataSource -Name '<your data source name>')
Thanks for keeping us posted!
Best regards,
Alex Belisle
It worked, thank you!
Could you advise how to make it default? or is it a new change in this version?
Update: I fixed it by deleting the Local Data Source (default)
You can close the ticket.
Hello,
Thanks for the feedback!
By the way you can make a default data source from RDM, File -> Data sources -> at the bottom of the data source management windows, you should See a dropdown to select the opening mode (On start up), and if you choose "Use Default Data source", and this will bring a second drop down to select the default data source to conect to.
Have a great one!
Best regards,
Alex Belisle