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.
1 |
Import-Module -Name .\module.psd1 -Force |
Example:
Pingback: Powershell Tip #30: Find system uptime | Powershell Guru
Pingback: Powershell Tip #32: Count the number of parameters passed in a function | Powershell Guru