Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Get-InstalledModule and Get-Module -ListAvailable?

Tags:

powershell

As far as I can tell they do the same, so what is the reason to use one over the other?

(Sorry, SO question rule engine - have no idea what else to say)

like image 345
mark Avatar asked May 15 '26 11:05

mark


1 Answers

Get-InstalledModule is part of PowerShellGet and will list installed modules using Install-Module cmdlet, But Get-Module -ListAvailable shows modules from all locations mentioned in $env:PsModulePath location.

like image 106
Prasoon Karunan V Avatar answered May 18 '26 20:05

Prasoon Karunan V



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!