locked
PowerShell Module does not load setup functions when importing RRS feed

  • Question

  • I have written a powershell module that has a few functions at load for setup. When I import the PSM1 module, they execute immediately, as expected, but when i just call a regular "import-module -name" it it just loads the PSD1, but doesn't execute the functions in the PSM1 module. 

    For reference, these functions are just checking env variables and populating them, if they do not exist.

    Any way to get this to work?  

    • Edited by jerle Tuesday, February 18, 2020 5:03 PM
    Tuesday, February 18, 2020 5:02 PM

All replies

  • what's  code in your  module , share that . Nobody will know it until you post  
    Sunday, April 19, 2020 1:56 AM