Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Thursday, February 10, 2011

What cmdlets are imported with new PowerShell Modules

I call PowerShell the “never ending beast.”  I do not say that in a bad way, but in a good way.  PowerShell is designed to be continually added to.  One way this is accomplished is through the addition of modules.   Modules can come from Microsoft, or you.  They are a collections of new cmdlets, functions, and scripts that allow you to add functionality to PowerShell.  The question is, what cmdlets are added when I import a module?

To determine the modules that are available on the client/server you are on, type Get-Modules –ListAvailable and press Enter.

image

The list returned will vary depending on what is installed on the client/server you are working on.  When you run the Import-Module command, you only know that command completed.  To see what was imported, use the –verbose switch.

For example, type Get-Module AppLocker –Verbose and press Enter. The output is listed below.

image

Here you can see each cmdlet that is imported into your session and is available for use.

No comments: