Author Posts

July 11, 2017 at 10:31 am

Hi,

I have created a custom function that i would like to load each time i start my ISE, do i have to convert to a module to do this or can it load the function without me having to execute it?

Thanks

July 11, 2017 at 3:31 pm

Sometimes I put them in a file called "$env:userprofile\Documents\WindowsPowerShell\Modules\mymod\mymod.psm1". Then I set a variable called $psmodulepath to "$env:userprofile\Documents\WindowsPowerShell\Modules\mymod" so I can cd to it easily.