The current PowerShell host is: 'Universal Automation Host' (version 1.0). The module 'C:\Program Files\PowerShell\Modules\Kemp.LoadBalancer.Powershell\Kemp.LoadBalancer.Powershell.psd1' requires a minimum PowerShell host version of '2.0' to run.
Running 2026.2.0. Running this script specifically in Windows PowerShell 5.1 environment. Script is literally just loading the module and then Get-Module.
Not sure how to get around this.
@jeremiahgaswint I will have to look at this module but it seems to be incorrectly checking the Host version and not the PS Version. I'm assuming it want's Windows PowerShell 2 or later. Our host process doesn't align with the version numbers of the PowerShell host process itself.
Can you try to create a new, custom environment?
Settings -> Environments
Create a new environment and select the Custom type. For the path, insert powershell.exe.
Try running your script again using this as the Run In setting to see if that resolves the issue.
Adam Driscoll
PowerShell Expert and Developer at Devolutions
I created the custom environment and ran the script, but it just sits there running until i cancel the job. Tried adding some additional test output and verbose messages, but it just sits there. Tried with both powershell.exe and the full path.
Looking at the psd1 file included with the module, it looks like you are correct, its specifically looking for PowerShellHostVersion of 2.0 as well as PowerShellVersion of 2.0. Since the module is signed but that file is editable, I was able to edit the host version to 1.0 and I'm able to load it. I'll just need to leave some breadcrumbs in this script if I ever update the module and this happens again.
Thanks for the suggestion on what to look for.
@jeremiahgaswint Glad you were able to resolve this. I'll open an issue to track this because our host version should align with the product version anyways. If we had that behavior, then you would be able to load the module without issue because the Host version would be something like 2026.2.x and would always be larger than the PS host version.
Adam Driscoll
PowerShell Expert and Developer at Devolutions