Cannot load PowershellUniversal module

Hello

Product: PowerShell Universal
Version: 1.5.2
MSI windows install

the service run well, but when i try to load it manually i get this message

introuvable = not found

PS C:\> import-module "C:\Program Files (x86)\Universal\Cmdlets\Universal.psm1"
Type [UniversalAutomation.AssemblyResolver] introuvable.
Au caractère C:\Program Files (x86)\Universal\Cmdlets\Universal.psm1:1 : 1
+ [UniversalAutomation.AssemblyResolver]::Bind()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (UniversalAutomation.AssemblyResolver:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

i’m running POSHU on windows 1909 with

PS C:\> Get-Host

Name             : ConsoleHost
Version          : 5.1.18362.1171
InstanceId       : 4760d39c-b1f3-4c67-8165-499ed3b6b0ab
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : fr-FR
CurrentUICulture : fr-FR
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Any idea what i’m missing? :slight_smile:

Tonic8

Try loading the PSD1 instead of the PSM1.

import-module "C:\Program Files (x86)\Universal\Cmdlets\Universal.psd1"

:hot_face:
sorry…

1 Like