# Problem with Import-Module

**URL:** <https://forums.powershell.org/t/problem-with-import-module/330>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/problem-with-import-module/330 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/problem-with-import-module/330/1 "2011-12-31T18:30:00Z")

</div>

by iHunger at 2012-11-14 08:28:28

> I have several PowerShell Modules that are all named in the format OurCompanyName.Category. If I have only one of these in my modules directory I can use:  
>   
> `ipmo OurComp*`  
>   
> to import the module. If I have 2 or more I get an error reading:  
>   
> Import-Module : The specified module ‘_OurComp_’ was not loaded because no valid module file was found in any module directory.  
> At line:1 char:5  
> + ipmo \<\<\<\< OurComp\*  
> + CategoryInfo : ResourceUnavailable: (OurComp\*:String) [Import-Module], FileNotFoundException  
> + FullyQualifiedErrorId : Modules\_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand  
>   
> **Additional details]  
> These modules are written in C# and use a PSD1 manifest files. If we use the full names for the import-module cmdlet, the modules import fine, it is only when trying to use the wildcard to import them all.**  
>   
> **Anyone seen this before?**

by ArtB0514 at 2012-11-14 09:14:44

> Haven’t tried to do this, but this should be a workaround for the issue:  
>   
> Get-Module OurComp\* -ListAvailable | Import-Module

by iHunger at 2012-11-15 06:38:48

> Thanks for the work-around. If I find the root cause I will post it here.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:02pm UTC](https://forums.powershell.org/t/problem-with-import-module/330/2 "2024-05-16T21:02:51Z")

</div>

Closed on May 16, 2024, 9:02pm UTC


