Powershell Tip #31: Reload a module

By | September 2, 2015

Tip: You can reload a module by using the –Force parameter.

It can be useful during development when you updated your module and you want to see your latest changes.

Indeed, when you import a module it is cached until you exits your session so without using the -Force parameter, you would not be able to see these changes.

Example:

reload-module-powershell-force-parameter


previous-buttonnext-button

Leave a Reply

Your email address will not be published.