Product: PowerShell Universal
Version: 1.5.11
I have created an environment.
New-PSUEnvironment -Name "WBG" -Path "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Modules @('WBGamesLogging') -Variables @('*')
I am including in a dashboard.
New-PSUDashboard -Name 'Tools' -BaseUrl '/tools' -Framework 'UniversalDashboard:Latest' -Environment "WBG" -Content {....
I see it’s loaded in the logs.
[2021-02-10T11:59:53.9219491Z] Loading module: C:\Program Files\WindowsPowerShell\Modules\WBGamesLogging\WBGamesLogging.psd1
But when I use functions from the module they don’t work and the log shows.
[2021-02-10T11:59:59.4849782Z] An error occurred: The term 'New-Log' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Endpoint: 12bd7798-9f59-407f-9a70-529b2536d834
Session: 7527c0a7-3725-4bab-b706-b138cbc35f52
File:
Endpoint Start Line: 4
Endpoint End Line: 11
Stack Trace: at <ScriptBlock>, <No file>: line 7
[2021-02-10T11:59:59.4856871Z] An error occurred: The term 'Write-Log' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Endpoint: 12bd7798-9f59-407f-9a70-529b2536d834
Session: 7527c0a7-3725-4bab-b706-b138cbc35f52
File:
Endpoint Start Line: 4
Endpoint End Line: 11
Stack Trace: at <ScriptBlock>, <No file>: line 8
The functions are exported in the .psm1
Export-ModuleMember -Function "Move-Log, New-Log, Write-Log"
Not sure what I am doing wrong here.