Solved

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

Posted on 2014-12-22
3
168 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
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...
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ā€¦

734 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