# Auto load custom function

**URL:** <https://forums.powershell.org/t/auto-load-custom-function/8993>\
**Category:** PowerShell Help\
**Created:** [July 11, 2017, 5:01am UTC](https://forums.powershell.org/t/auto-load-custom-function/8993 "2017-07-11T05:01:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![incognitotom](https://avatars.discourse-cdn.com/v4/letter/i/e495f1/32.png) [@incognitotom](https://forums.powershell.org/u/incognitotom)\
**Post date:** [July 11, 2017, 5:01am UTC](https://forums.powershell.org/t/auto-load-custom-function/8993/1 "2017-07-11T05:01:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![simbrook](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@simbrook](https://forums.powershell.org/u/simbrook)\
**Post date:** [July 11, 2017, 5:29am UTC](https://forums.powershell.org/t/auto-load-custom-function/8993/2 "2017-07-11T05:29:34Z")

</div>

This maybe of help. [Blog | Martello Technologies](http://www.gsx.com/blog/bid/81096/enhance-your-powershell-experience-by-automatically-loading-scripts)

---

<div class="post-metadata">

**Author:** ![js2010](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@js2010](https://forums.powershell.org/u/js2010)\
**Post date:** [July 11, 2017, 10:01am UTC](https://forums.powershell.org/t/auto-load-custom-function/8993/3 "2017-07-11T10:01:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:37pm UTC](https://forums.powershell.org/t/auto-load-custom-function/8993/4 "2024-05-16T20:37:54Z")

</div>

Closed on May 16, 2024, 8:37pm UTC


