Make PowerShell module compatible with PowerShell Core
0 vote
MS is now only actively developing PowerShell Core (currently version 7.0.3). Though, the RDM module appears to be incompatible to it.
E.g. calling Get-RDMSession returns warnings and error:
PS> Get-RDMSession -Name VM1 WARNING: System.NullReferenceException: Object reference not set to an instance of an object. at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections(BaseConnectionDataSource dataSource, ConnectionEngine currentEngine) at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.RefreshConnections() at RemoteDesktopManager.PowerShellModule.BaseCommand.BeginProcessing() Get-RDMSession: Cannot retrieve the dynamic parameters for the cmdlet. Object reference not set to an instance of an object.
I suggest you add this to the todo list...
Hi,
We already analyzing it: https://forum.devolutions.net/topics/33991/powershell-70
As a workaround to use some cmdlets (those that don't need an object as parameter), you can import the module using the -UseWindowsPowerShell parameter
Import-Module -UseWindowsPowerShell "C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"
Best regards,
Olivier Désalliers
Thanks for pointing me to the workaround. I'll try that later
Hi support!
having PowerShell core support would be great - I just checked, if I could use the module natively on a Mac (There is no module on the Mac in the installed application). This does not seem to work although I got PowerShell natively installed on my MacBook Pro. Please also consider supporting PowerShell on MacOS and Linux.
Thanks and with kind regards,
Achim Hentschel
Hello,
This would be great for sure and it's something we want to do. Unfortunately it's not something simple for now due to our architecture.
Regards
David Hervieux