Powershell auto import module

Asked By 0 points N/A Posted on -
qa-featured

Hi, I am new to powershell. I have no idea on what is module in Powershell? Why the module is used?  Please explain briefly. Thanks in advance.

SHARE
Best Answer by
Answered By 0 points N/A #328672

Powershell auto import module

qa-featured
  • In powershell, a module is a set of functionalities used to combine the script files, assemblies and resources which are interrelated to share the code easily.
  • It contains cmdlets, functions, providers, workflows, variables and alias.
  • The purpose of module is to reuse and abstraction.
  • One or more modules are added to the current session by Import module. By default it loads all the variables, workflows and alias.
  • It is used to add one or more modules to current session.
  • In powershell 3.0 modules are automatically imported which are installed earlier when any commands are used. Now it is possible to install any module using Import-Module command.

Related Questions