Hi, I have created PowerShell module (with bunch of advanced functions) and module manifest. Autoloading of my module works fine but I have problems with autoloading of other PowerShell modules downloaded from the Internet such as ADReplication module, Carbon module and PDFTools module. All these modules and mine too are located where they should be:
and each of them has its own module manifest. I am not sure but I think before I created mine module manifest autoloading of downloaded modules worked fine. What is the catch here?
What's your PSModulePath environment variable, and what's your execution policy?
Meanwhile I deleted Tools.psd1 file.
$env:PSModulePath -split ";" returns:
Get-ExecutionPolicy returns: Unrestricted
PS C:\> get-module -Name pdftools,adreplication,carbon,importexportexcel,tools -ListAvailable
ModuleType Version Name ExportedCommands
PS C:\> Get-ChildItem -Path C:\Users\admbojan.zivkovic\Documents\WindowsPowerShell\Modules\
Mode LastWriteTime Length Name
Autoloading of modules ADReplication, ImportExportExcel and Tools works, Carbon and PDFTools does not. When I had Tools.psd1 file problems existed too. Apart from Tools module others are downloaded and copied to ...\Modules folder
You must be logged in to reply to this topic.