![]() Get the path of your custom module as highlighted. ![]() This gets all installed modules in your system along with their installed Path. To get the modules installed, Open PowerShell console and type: Make sure you have the custom module installed already. Step 1: Get the Path of your custom PowerShell Module. To fix the issue, You have to make sure your custom module’s path is appended to the PSModulePath environment variable. ![]() This error is because the PowerShell console or ISE is unable to get the module from given module path’s in the environment variable “PSModulePath”. “import-module : the specified module ‘sqlserver’ was not loaded because no valid module file was found in any module directory.”.“import-module : the specified module ‘exchangeonlinemanagement’ was not loaded because no valid module file was found in any module directory.”.“import-module : the specified module ‘activedirectory’ was not loaded because no valid module file was found in any module directory.”.You may face this trouble for other PowerShell modules as well. Problem: When trying to import the PnP PowerShell module, I got an error message “Import-Module: The specified module ‘SharePointPnPPowerShellOnline’ was not loaded because no valid module file was found in any module directory”.
0 Comments
Leave a Reply. |