title: Why are PowerShell Import-Module wildcards not working?
body: <p>I have a few scripts where I import all VMware-Modules for simplicity. This has worked all the time - but now on one server it won't.</p>
  <pre class="lang-none prettyprint-override"><code>PS C:\Temp&gt; Import-Module VMware.*
  Import-Module : The specified module 'VMware.*' was not loaded because no valid module file was found in any module
  directory.
  At line:1 char:1
  + Import-Module VMware.*
  + ~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ResourceUnavailable: (VMware.*:String) [Import-Module], FileNotFoundException
      + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
  </code></pre>
  <p>I just copied the modules to <code>C:\Windows\System32\WindowsPowerShell\v1.0\Modules</code>.</p>
  <p>When I use the full name (<code>Import-Module VMware.VimAutomation.Core</code>) it works as usual.</p>
  <p>How can I fix this? They appear correctly when I do a <code>Get-Module -ListAvailable</code>.</p>