A. The Get-Module cmdlet has a -ListAvailable switch that will list all modules that are available on a computer. The syntax for the cmdlet is simply
The cmdlet gives you a lot of information. If you just want to see the module names and their descriptions, you can pass the output into the format-table cmdlet and show just the Name and Description properties, as shown here.
PS C:\Users\savadmin> Get-Module -ListAvailable | Format-Table Name, Description Name Description ---- ----------- ADRMS Microsoft Windows Active Directory Rights Management Ser... AppLocker Powershell AppLocker Module BestPractices Best Practices Module BitsTransfer FailoverClusters FileTransfer Powershell File Transfer Module PSDiagnostics Windows PowerShell Diagnostic Utilities Module ServerManager TroubleshootingPack Microsoft Windows TroubleshootingPack ModuleRelated Reading:
- PowerShell 101, Lesson 1
- PowerShell Got Smart About Smart Quotes
- Q. How can I use Windows PowerShell to return a list of machine services in a designated state?
- VMware and PowerShell: Managing ESX Server from the Command Line
Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.