Hi!
I created some scripts to handle entries. Until now I used version 2021.2.0.43 of the PS module. After upgrading RDM (to 2022.3.31.0 64-bit) and PS module (2022.3.1.5) these scripts does not work any more.
I have a quite complex template with references
The Template was created via "Edit -> Save as Template" in RDM UI.
When I use this template in RDM UI it works. But if i try to add in powershell
$template = Get-RDMTemplateByName "template_fromentries" # retrieve above template $session = New-RDMSession -Type TemplateGroup -Name "0815" -TemplateID $template.ID -Group "Test\foo\bar" -SetSession
After this I get in RDM this picture
Then this
Set-RDMSession -Session $session -Refresh
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommand
Set-RDMSession : FĂĽr die Verbindung wurde eine ungĂĽltige Gruppe angegeben.
In Zeile:1 Zeichen:1
+ Set-RDMSession -Session $session -Refresh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-RDMSession], Exception
+ FullyQualifiedErrorId : 0,RemoteDesktopManager.PowerShellModule.SetRDMSessionCommandThe german error message translates to "An invalid group was specified for the connection."
After that the powershell does not response any more and I have to kill the process.
If I use a simple template, created by hand in RDM UI template editor like this
<Folder>
<Host>
<RDP>
<Filezilla>I don't get error messages after Set-RDMSession, but the powershell is not responding as well.
Do I something wrong or is this a bug?
CU,
Timo
Hi,
I'll try to reproduce your issue on my end to be sure but it does look like a bug.
As for the script freezing; Are you using PS7?
If that is the case, you'll probably have to upgrade RDM to, at least, 2022.3.33.
Alternatively, if upgrading RDM isn't possible, run you script in PS5.1 or close RDM before running your script.
If that is not the case, I'll dig deeper.
Regards
Jonathan Lafontaine
Hi,
I am using PS5.1
When I close RDM there is no freezing. Instead I get an
[Error] Timeout fĂĽr den Vorgang wurde ĂĽberschritten.
(translatet: [Error] The operation timed out.)
The bunch of "An invalid group was specified for the connection." errors are still there.
Why the template work in RDM but not in the ps module?
CU,
Timo
You can ignore the timeout error. It's our IPC layer (the code that sends commands to RDM if it's running) reporting an error because it couldn't connect to RDM in time.
Now as to why it works in RDM and not in PS.
RDM and the PS module share a lot of code but not all. Some of it has to be rewritten and often times in a completely different way to accommodate the way PowerShell modules work. That can, unfortunately, lead to bugs.
Jonathan Lafontaine
So I can assume there are two bugs:
1.: Not responding if RDM is running (which is no problem because there is a workaround)
2.: Template working in RDM is not working in PS modul
Can I provide any further information (perhaps an export of the template) to assist you to solve this bugs?
CU,
Timo
I'll take you up on this offer. If you could send me the template export, that would be really helpful.
Regards
Jonathan Lafontaine
Thanx for your effort!
2022.3.1.4
Jonathan Lafontaine
Hi,
I know it's been some time but could you try the new version of the PowerShell module?
We've been ironing out some kinks, hopefully your case is now handled properly.
Regards.
Jonathan Lafontaine