Product: PowerShell Universal Version: 4.3.0/4.3.3
I have tones of custom module files.
I have a logging module I need to implement and use in all of the psu environment (for auditing), All my modules located in C:\Programdata\UniversalDashboard\Repository\Modules folder.
I even add the location to the $env:PSModulePath
When I type the command in scripts\dashboards it shows the command and autocomplete the arguments, (it seems like is recognize the module),
When I try to use my function on scripts it not working and not execute the function (I don’t see any error).
When I use my function on dashboard, It shows red error say’s command found.
If I Load the module manually in script or dashboard it work’s fine.
There is a bug that the modules won’t begin loaded automatically?
In PSU V 3.X there was an option to check the modules I wont to load in dashboard.
It sounds like this logging module is not compatible with whatever environment your dashboard is set to use.
When I using Import-Module and calling the function, it’s working as it should.
The problem is that the module won’t load’s automatically in every dashboard/script (I need to use it in all environments)