How do I force powershell to reload a custom module? How do I force powershell to reload a custom module? powershell powershell

How do I force powershell to reload a custom module?


As suggested by wOxxOm try Import-Module ... -Force or if that does not work try to explicitly remove it with Remove-Module and reimport it

I just created the answer so that the question can be closed if solved - if wOxxOm will create an answer I will delete this one.


For anyone else coming across this issue, see https://github.com/PowerShell/PowerShell/issues/2505

It seems that there is a known long-standing bug regarding importing of modules that are anything above rudimentary level in complexity (for example, I have a module with a single class and class method that fails to update).