Solved

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

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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

680 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