• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

what' am i doing wrong, why my powershell module is not visible on Get-Module ?

Hello experts,

i'm following a tutorial in order to create my first module.

the command "$env:PSModulePath" shows me where to drop the ".psm1" file.

I've created a module with only three functions on it.

the problem is that i can not see it in any list output with cmdlets for modules.

what command would show me modules that stand in "Program files/WindowsPowershell/Modules ?

is this possible ? if yes, how do we do to add a Version, moduleType... ?

Thank in advance for your help.
  • 2
2 Solutions
Place the module in a folder with the same name as the module file.

For Test.psm1, The full path would be: C:\Program Files\WindowsPowerShell\Modules\Test\Test.psm1

To import module..

import-module Test
toshi_Author Commented:
thank a lot, i did not see such info.
now i have the output with : Get-Module -ListAvailable.

how can i change the version ?  and others infos
You could create a new module manifest with New-ModuleManifest.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now