Keeping Track of Installed Modules

by Apr 25, 2016

When you start using PowerShellGet to download modules from the PowerShell Gallery (www.powershellgallery.com) or your own NuGet repositories, you may want to keep track of the modules you installed. Here is a one-liner that shows you what was installed, and where:

 
PS> Get-InstalledModule | Select-Object Name, InstalledLocation 

Name                   InstalledLocation                                        
----                   -----------------                                        
Pester                 C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0  
xDefender              C:\Program Files\WindowsPowerShell\Modules\xDefender\0...
xRobocopy              C:\Program Files\WindowsPowerShell\Modules\xRobocopy\1...
xWebAdministration     C:\Program Files\WindowsPowerShell\Modules\xWebAdminis...
CommunityAnalyzerRules C:\Users\Tobias\Documents\WindowsPowerShell\Modules\Co...
FabrikamAnalyzerRules  C:\Users\Tobias\Documents\WindowsPowerShell\Modules\Fa...
ISESteroids            C:\Users\Tobias\Documents\WindowsPowerShell\Modules\IS...
nScriptAnalyzerRules   C:\Users\Tobias\Documents\WindowsPowerShell\Modules\nS...
NtpTime                C:\Users\Tobias\Documents\WindowsPowerShell\Modules\Nt...
Pscx                   C:\Users\Tobias\Documents\WindowsPowerShell\Modules\Ps...
PSScriptAnalyzer       C:\Users\Tobias\Documents\WindowsPowerShell\Modules\PS...
ScriptAnalyzer         C:\Users\Tobias\Documents\WindowsPowerShell\Modules\Sc...
xDSCResourceDesigner   C:\Users\Tobias\Documents\WindowsPowerShell\Modules\xD...
 

Twitter This Tip! ReTweet this Tip!