Inconsistent Import-Module behavior on Windows

Resolved

Inconsistent Import-Module behavior on Windows

avatar

RDM v2025.3.32.0 installed locally
PowerShell module v2026.1.4 installed via Install-Module (PowerShell Gallery)
PowerShell v7.6.0
Windows 11

I'm getting inconsistent behavior when doing Import-Module Devolutions.PowerShell. Sometimes it loads as Devolutions.PowerShell, sometimes as Devolutions.PowerShell.Extension, which is messing up #requires in my script. See output below.

One session I get:

> Import-Module devolutions.powershell
> get-module | ? Name -like "Devo*" | select Name,Path,ImplementingAssembly,Version | format-list

Name                 : Devolutions.PowerShell.Extension
Path                 : C:\Users\USERNAME\Documents\PowerShell\Modules\Devolutions.PowerShell\2026.1.4\Devolutions.PowerShell.dll
ImplementingAssembly : Devolutions.PowerShell, Version=2026.1.4.0, Culture=neutral, PublicKeyToken=null
Version              : 2026.1.4


Next session I get:

> Import-Module devolutions.powershell
> get-module | ? Name -like "Devo*" | select Name,Path,ImplementingAssembly,Version | format-list

Name                 : Devolutions.PowerShell
Path                 : C:\Users\USERNAME\Documents\PowerShell\Modules\Devolutions.PowerShell\2026.1.4\Devolutions.PowerShell.dll
ImplementingAssembly : Devolutions.PowerShell, Version=2026.1.4.0, Culture=neutral, PublicKeyToken=null
Version              : 2026.1.4

All Comments (4)

avatar

Hello,

Thank you for your feedback.

When installing the module with the Install-Module PowerShell cmdlet, there is no need to import the module afterward.

What data source type are you using?

Since you are using RDM 2025.3.32, we recommend using the Devolutions PowerShell module version 2025.3.4.

Install-Module -Name Devolutions.PowerShell -RequiredVersion 2025.3.4


For your information, I'm moving this thread to the PowerShell Support section.

Let us know if that helps.

Best regards,

Érica Poirier

avatar

I used Import-Module to demonstrate the problem. If I just run my script, it occasionally fails instantly (#requires is L1). I want to eventually run this script as a scheduled task, so I won't always have a terminal open to see it fail.

Data source type is Devolutions Server

avatar

Hello,

Thank you for your feedback.

We are unable to reproduce this behaviour. Our development team is investigating whether some improvements can be made to fix this.

We will keep you updated.

Thank you for being so patient.

Best regards,

Érica Poirier

avatar

Hello,

Thank you for being so patient.

A fix is available in the latest 2026.1.5.0 version of the Devolutions PowerShell module.

Let us know if that works.

Best regards,

Érica Poirier