pwujczyk / ProductivityTools.ImportModulesFromDirectory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import-ModulesFromDirectory

Imports all modules from the given directory.

Not all modules written by me are pushed directly to the powershellgallery.com. At first, usually, I am storing them locally and use for some time. Some of them won't be published as they are very specific to my needs and won't be valuable for others.

To import them in the convenient way I am using an Import-ModulesFromDirectory module.

It searches through the directory to find psm1 files and performs Import-Module on them.

Import modules from Directory

Import-ModulesFromDirectory -Recurse -Verbose

Import-ModulesFromDirectory -Recurse -Verbose -Path D:\Powershell\Common\Modules\

Cmdlet has two switches: Recuse and Path. If Path is not provided it uses the current directory.

About


Languages

Language:PowerShell 100.0%