-
One of the new features in PowerShell version 2.0 are Modules, which allow PowerShell code to be organized in self-contained, reusable units. Doug Finke has written a Get-Functions Script which takes a single file, a list of files or the –Recurse switch. The switch finds all the functions in all...
-
Andy Scheider discusses the concept of exporting functions to PowerShell Modules or PSM1 files. Once a function is in a Module it can be Imported into another session and reused. Read more at: http://get-powershell.com/2008/12/15/exporting-functions-in-powershell-modules/
-
his is a new area in PowerShell v2 that enables you to load\unload functionality from your PowerShell sessions. Modules can be "libraries" of functions as I showed in a recent set of posts or they can be compiled dlls with cmdlets. ... Read More
-
By Jonathan Medd PowerShell 2.0 introduces the concept of modules; essentially they are the evolution of snapins from PowerShell 1.0. There are some great videos below by Bruce Payette and Osama Sajid from the PowerShell team both introducing and ... Read More
-
Hello, I am currently writing a PowerShell 2 Script module that provides a load of helper scripts for use in other systems. This module, contains a cmdlet called 'Load-Snapin' that takes and array of Snapins to be loaded and then attempts to load them, e.g.: Load-Snapin -snapins "VMWare...
-
I would like to have a powershell profile setup so that it will roam with me when I login to any system. I can do the roaming profile easily in AD with folder redirection, but how can I create a powershell profile and also have the modules I want load when I launch powershell and install? I know the...
-
Hi, I need to remove / unload constant global variables when a module gets removed using the remove- module cmdlet. Additionally, the remove- variable documentation in MSDN says - You cannot use this cmdlet to delete variables that are set as constants or those that are owned by the system. - http:/...
-
Joel Bennett talks a little about his experience using PowerShell nested modules and module manifests. Read more
-
Josh Einstein shows that you can use ArgumentList to pass parameters to a PowerShell module. Read More