JEA not exposing Import-PowerShellDataFile to module

Welcome Forums General PowerShell Q&A JEA not exposing Import-PowerShellDataFile to module

Viewing 0 reply threads
  • Author
    Posts
    • #241553
      Participant
      Topics: 2
      Replies: 1
      Points: 43
      Rank: Member

      I’m working on a JEA script that requires importing MSAL.PS.

      The JEA configuration is set to use a gMSA, and SessionType=RestrictedRemoteServer.

      As part of the JEA Module, I’ve been through the following:

      • in Module Manifest results in

        Trying each module separately shows msal.ps generating the error, the other one is fine.  Both follow c\prog\winps\modules\<name>\<ver>\<name.psd1> and work fine outside JEA with the gMSA (so not a $env:psmodulepath issue).

      • in the root module now results in

        Looking into msal.ps it’s calling Import-PowerShellDataFile to pull some data out of the manifest.  I tried adding to the JEA Module

        like is required to use all parameters of Select-Object.  I can now get-command and see the alias, but it doesn’t change the error, implying the module still can’t see it.  I also tried scope script, with no improvement.

       

      Any other ideas?

Viewing 0 reply threads
  • The topic ‘JEA not exposing Import-PowerShellDataFile to module’ is closed to new replies.