Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. The Dime Tour > Modules

Modules

PowerShell modules are fundamental to organizing your scripts. You can place your scripts in subfolders, and from the module you can recursively find them all and dot-source them into a PowerShell session. It’s a fantastic way to speed development. You can just drop a script into a directory below your module (which has a .psm1 extension), do an Import-Module –Force module name, and you’re ready to rock.

Here is a list of modules on my box. They are probably different than yours because I have PowerShell v3 CTP2 installed on Windows 7.

Get-Module -ListAvailable | Select Name
AppLocker
BitsTransfer
CimCmdlets
Microsoft.PowerShell.Core
Microsoft.PowerShell.Diagnostics
Microsoft.PowerShell.Host
Microsoft.PowerShell.Management
Microsoft.PowerShell.Security
Microsoft.PowerShell.Utility
Microsoft.WSMan.Management
PSDiagnostics
PSScheduledJob
PSWorkflow
TroubleshootingPack

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial