Solved

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

Posted on 2014-12-22
3
163 Views
Last Modified: 2014-12-22
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.
0
Comment
Question by:toshi_
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 40512738
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
0
 

Author Comment

by:toshi_
ID: 40512768
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
0
 
LVL 40

Assisted Solution

by:Subsun
Subsun earned 500 total points
ID: 40512791
You could create a new module manifest with New-ModuleManifest.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hi all.   The other day I had to change the passwords for a bunch of users on the fly. Because they were so many, I decided to do it in an automated way and I would like to share it with you all.   If you are not doing it directly in a Domain Co…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now