Modules folder location

Jan 14, 2014 at 9:32 AM
Hello
Is there a way to specify a custom path to the Modules folder?

Regards
Olegas
Coordinator
Jan 23, 2014 at 8:31 PM
Hi Olegas,
There's nothing specific in the code that allows you to specify a custom directory for modules. All code simply uses Import-Module with a specified module name and lets PowerShell take care of figuring the rest out.

As long as you place the modules in one of the folders specified by $env:PSModulePath things should work fine. The PowerShell documentation on Installing Modules has a full explanation of how to specify custom locations for modules.

Thanks for checking out SQL Power Doc!

-- Kendal