Search this site
Embedded Files
Spelldragon's IT
  • Welcome Spelldragons
    • News
    • Scripts
      • Script Powershell
        • Powershell : Addressed a mail
        • Powershell : Uninstall Powershell 1.0
        • Powershell : List details from extended files
        • Powershell : Add a Module
        • Powershell : Check local groups and members attached to it
        • Powershell : Check Des versions Mcafee
        • Powershell : Comment connaitre la version du Powershell ?
        • Powershell : creer un log simplement
      • Script Batch
        • Modification de l'hibernation
    • Common Sense
    • Infrastructure and Application
      • Citrix
        • Xendesktop
          • Check Attached User to Xendesktop Catalogs
          • Multisession Error on Connect to My PC
      • DNS
        • Add and delete DNS informations
      • WSUS
        • Re-Installer WSUS 3.0 SP2
        • WSUS : Accès à la base WSUS par Management Studio
    • Windows
Spelldragon's IT
  • Welcome Spelldragons
    • News
    • Scripts
      • Script Powershell
        • Powershell : Addressed a mail
        • Powershell : Uninstall Powershell 1.0
        • Powershell : List details from extended files
        • Powershell : Add a Module
        • Powershell : Check local groups and members attached to it
        • Powershell : Check Des versions Mcafee
        • Powershell : Comment connaitre la version du Powershell ?
        • Powershell : creer un log simplement
      • Script Batch
        • Modification de l'hibernation
    • Common Sense
    • Infrastructure and Application
      • Citrix
        • Xendesktop
          • Check Attached User to Xendesktop Catalogs
          • Multisession Error on Connect to My PC
      • DNS
        • Add and delete DNS informations
      • WSUS
        • Re-Installer WSUS 3.0 SP2
        • WSUS : Accès à la base WSUS par Management Studio
    • Windows
  • More
    • Welcome Spelldragons
      • News
      • Scripts
        • Script Powershell
          • Powershell : Addressed a mail
          • Powershell : Uninstall Powershell 1.0
          • Powershell : List details from extended files
          • Powershell : Add a Module
          • Powershell : Check local groups and members attached to it
          • Powershell : Check Des versions Mcafee
          • Powershell : Comment connaitre la version du Powershell ?
          • Powershell : creer un log simplement
        • Script Batch
          • Modification de l'hibernation
      • Common Sense
      • Infrastructure and Application
        • Citrix
          • Xendesktop
            • Check Attached User to Xendesktop Catalogs
            • Multisession Error on Connect to My PC
        • DNS
          • Add and delete DNS informations
        • WSUS
          • Re-Installer WSUS 3.0 SP2
          • WSUS : Accès à la base WSUS par Management Studio
      • Windows

Powershell : Add a Module

To add a module from awebsite as http://technet.microsoft.com/fr-FR/scriptcenter/dd742419.aspx, you need to follow these steps : 

1) Find where are located your modules with "dir env:psmodulepath"

result :

So you know where you have some Powershell Modules and this location will let you place yours in the same path :

In our example I copy a downloaded module into  C:\WINDOWS\system32\windowspowershell\v1.0\Modules and you will be able to use all commandlines attached to it.

2) Copy your module in location observed in previous command.

Example, I put my module called NTFSSecurity here : C:\WINDOWS\system32\windowspowershell\v1.0\Modules\NTFSSecurity

3) Import your module in Powershell :

Import-module  -Name C:\WINDOWS\system32\windowspowershell\v1.0\Modules\NTFSSecurity -Verbose

4) Now you can test your module with specific command lines. First use this commandline :  get-module NTFSSecurity 

See result below :

If you need to identify each commandline attached to this module try this command : 

(get-module NTFSSecurity ).ExportedCommands

Enjoy now.

Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse