| external help file | Module Name | online version | schema |
|---|---|---|---|
PSIntro-help.xml |
PSIntro |
2.0.0 |
Get key module status
Get-ModuleStatus [[-Module] <String[]>] [<CommonParameters>]Use this command to check the status of key modules. The command will return a list of modules with their online version, installed version, and whether an update is needed.
PS C:\> Get-ModuleStatus
Name Online Installed UpdateNeeded
---- ------ --------- ------------
PSReadLine 2.4.5 2.4.5 False
Microsoft.PowerShell.PSResourceGet 1.1.1 1.1.1 FalsePS C:\> Get-ModuleStatus -Module Pester,PSReadline,PackageManagement
Name Online Installed UpdateNeeded
---- ------ --------- ------------
Pester 5.7.1 5.7.1 False
PSReadLine 2.4.5 2.4.5 False
PackageManagement 1.4.8.1 1.4.8.1 FalseCheck the status of user-specified modules.
PS C:\> Get-Content C:\scripts\MyModules.txt | Get-ModuleStatus
Name Online Installed UpdateNeeded
---- ------ --------- ------------
Microsoft.PowerShell.ConsoleGuiTools 0.7.7 0.7.7 False
Microsoft.PowerShell.Crescendo 1.1.0 1.1.0 False
Microsoft.PowerShell.PlatyPS 1.0.1 1.0.0 True
Microsoft.PowerShell.PSResourceGet 1.1.1 1.1.1 False
Microsoft.WinGet.Client 1.11.460 1.12.350 False
Microsoft.PowerShell.WhatsNew 0.5.5 0.5.5 False
Microsoft.PowerShell.ThreadJob 2.2.0 2.2.0 FalseCheck module status from a list.
The module names to check. The PSReadline and Microsoft.PowerShell.PSResourceGet modules are included by default.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: PSReadline, Microsoft.PowerShell.PSResourceGet
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Learn more about PowerShell: http://jdhitsolutions.com/yourls/newsletter