Solved

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

Posted on 2014-12-22
3
165 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Set OWA language and time zone in Exchange for individuals, all users or per database.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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