Get-Module

Get the modules that have been imported or that can be imported into the current session.

Syntax
      Get-Module [-All] [-ListAvailable] [-refresh] [-Name string[]] [CommonParameters]

      Get-Module [[-Name] string[]] [CommonParameters]

Key
   -All
         Gets module objects for all module files.
         Without the All parameter, Get-Module gets only the module object for
         the default module file. The cmdlet selects file types in the following order:
         manifest (.psd1) files, script module (.psm1) files, and binary module (.dll) files.

   -ListAvailable
         Get all of the modules that can be imported into the session.
         Get-Module gets the modules in the paths specified by the $env:PSModulePath environment variable.
         Without this parameter, Get-Module gets only the modules that have been imported into the session.

   -Name string[]
         Get only modules with the specified names or name patterns. Wildcards are permitted.
         You can also pipe the names to Get-Module.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

Standard Aliases for Get-Module: gmo

The Get-Module cmdlet gets the modules that have been imported, or that can be imported, into the session. Get-Module only gets modules; it does not import them. To import the modules into your session, use Import-Module.

Examples

Display the properties of a Process object:

PS C:\>

Display the properties of an Alias object:

PS C:\>

 

"I would" ~

Related:

Import-Module - Add a module to the session
New-Module - Create a new dynamic module (only in memory)
Remove-Module - Remove a module from the current session


© Copyright SS64.com 1999-2014
Some rights reserved