Get-RDMInstance: Object reference not set to an instance of an object.

Get-RDMInstance: Object reference not set to an instance of an object.

avatar

We have been using RDM Powershell module that was shipped as part of the application installation earlier, and last month we upgraded our RDM and its database and now it does not have powershell module shipped explicitly. it has to be installed from powershell gallary.

so we went ahead and installed the module from powershell gallery, however we are getting problem while running our scripts on Powershell 7. it works fine when we run it on windows powershell 5.1 but doesnt on PS core.

suppose if i try Get-RDMInstance i get error as "Get-RDMInstance: Object reference not set to an instance of an object.". i have tried possible solution as given in another forum post https://forum.devolutions.net/topics/36645/new-powershell-module--portable-rdm but it didnt help.

Please help. my installation details are as below

OS: Windows server 2016 datacenter
RDM Version: Enterprise Edition 2021.2.27.0
Powershell core version: 7.1.5
Powershell module version: 2021.2.0.43 (i tried using later versions too but error is same on powershell core. i get database upgrade warning on windows powershell)

Regards,
Ramdas

remotedesktopmanager.JPG

All Comments (2)

avatar

Hello Ramdas,

PowerShell 7.1 is not supported, would it be possible to upgrade to 7.2 and then try again?

You can download it from here: https://github.com/PowerShell/PowerShell/releases/tag/v7.2.1

Best regards,

Richard Boisvert

avatar

Hi Richard,

That's brilliant...this came to my mind once but never thought it could be the reason behind this. i couldn't spot this in module description either or on the website. Thanks so much

it works very well now.

Regards,
Ramdas