I'm trying to use powershell to ease the import of our devices in RDM, but it doesn't always work as it should...
An simple example... I create a new entry, and then get it based on the name...
PS C:\> New-RDMSession -Name 'UniqueSession' -Host '1.2.3.4' -Type Telnet -SetSession
...
HostWithPort : 1.2.3.4
ID : 3b1df77c-f31d-4a70-a598-7385586ef5c8
Kind : Telnet
Name : UniqueSession
...
PS C:\> Get-RDMSession -Name 'UniqueSession'
Get-RDMSession : Cannot validate argument on parameter 'Name'. The argument "UniqueSession" does not belong to the set "lvl 1,324dqwd,dc01,lvl 2,switch 1,switch 2,sw
itch 3,switch 4,switch 5,switch 6,TestHost" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again.
At line:1 char:22
+ Get-RDMSession -Name 'UniqueSession'
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Get-RDMSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,RemoteDesktopManager.PowerShellModule.GetRDMSessionCommand
So I can create a session, but cannot find it...???
get-rdmsession on any of the test sessions mentioned in the error does work, so get-rdmsession -name 'switch 1' returns the session.
Using RDM 12.5.4.0 btw...
Hello,
After the creation of the session, you must refresh the data source with the following cmdlet.Update-RDMUI
Best regards,
Érica Poirier