Skip to content

Instantly share code, notes, and snippets.

@crmckenzie
Created October 23, 2014 18:55
Show Gist options
  • Save crmckenzie/d7bbe1be5519f27449e8 to your computer and use it in GitHub Desktop.
Save crmckenzie/d7bbe1be5519f27449e8 to your computer and use it in GitHub Desktop.
Reload Powershell Module
Function Reload-Module($ModuleName)
{
$module = Get-Module $ModuleName
$path = $module.Path
"removing $ModuleName"
Remove-Module $ModuleName
"importing $path"
Import-Module $path
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment