Created
May 17, 2017 16:07
-
-
Save adbertram/2b4ef6b62f795960722ef3c2e5bee6a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### | |
## Module mymodule.psm1 in C:\Program Files\WindowsPowerShell\Modules\MyModule | |
function foo { | |
} | |
#################### | |
#################### | |
## script.ps1 | |
Import-Module MyModule | |
function foo { | |
} | |
## How do I force this 'foo' to use the one defined in this script and not in the module? | |
foo | |
################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment