Skip to content

Instantly share code, notes, and snippets.

@adbertram
Created May 17, 2017 16:07
Show Gist options
  • Save adbertram/2b4ef6b62f795960722ef3c2e5bee6a7 to your computer and use it in GitHub Desktop.
Save adbertram/2b4ef6b62f795960722ef3c2e5bee6a7 to your computer and use it in GitHub Desktop.
#####################
## 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