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

2 thoughts on “Powershell Tip #31: Reload a module

  1. Pingback: Powershell Tip #30: Find system uptime | Powershell Guru

  2. Pingback: Powershell Tip #32: Count the number of parameters passed in a function | Powershell Guru

Leave a Reply

Your email address will not be published. Required fields are marked *