# Get-PackageUpdateInfo

LLMS index: [llms.txt](/v1.0.1.0/llms.txt)

---

<!-- This file is auto-generated using PlatyPS + HUGO Workflow automation. Avoid editing directly! Original Front-Matter:
date: 2018-11-10
document type: cmdlet
external help file: PackageUpdateInfo-Help.xml
flagTranslation: Primary
HelpUri: ""
Locale: de-DE
Module Name: PackageUpdateInfo
ms.date: 06.01.2026
PlatyPS schema version: 2024-05-01
title: Get-PackageUpdateInfo
type: docs
-->



## SYNOPSIS

Get info about up-to-dateness for installed modules

## SYNTAX

### DefaultSet1 (Default)

```
Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [<CommonParameters>]
```

### CurrentUser

```
Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-CurrentUser] [<CommonParameters>]
```

### AllUsers

```
Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-AllUsers] [<CommonParameters>]
```

## ALIASES

This cmdlet has the following aliases,

## DESCRIPTION

Get-PackageUpdateInfo query locally installed modules and compare them against the online versions for up-to-dateness

## EXAMPLES

### EXAMPLE 1

```powershell
PS C:\> Get-PackageUpdateInfo
```

Outputs update information for all modules (currentUser and AllUsers).
Output can look like:

Name       Repository VersionInstalled VersionOnline NeedUpdate Path
----       ---------- ---------------- ------------- ---------- ----
PSReadline PSGallery  1.2              1.2           False      C:\Program Files\WindowsPowerShell\Modules\PSReadline
Pester     PSGallery  4.4.0            4.4.2         True       C:\Program Files\WindowsPowerShell\Modules\Pester

### EXAMPLE 2

```powershell
PS C:\> Get-PackageUpdateInfo -ShowOnlyNeededUpdate
```

This will filter output to show only modules where NeedUpdate is True
Output can look like:

Name       Repository VersionInstalled VersionOnline NeedUpdate Path
----       ---------- ---------------- ------------- ---------- ----
Pester     PSGallery  4.4.0            4.4.2         True       C:\Program Files\WindowsPowerShell\Modules\Pester

### EXAMPLE 3

```powershell
PS C:\> "Pester", "PSReadline" | Get-PackageUpdateInfo
```

Pipeline is supported. This returns the infos only for the two modules "Pester", "PSReadline"

This also can be done with Get-Module cmdlet:
Get-Module "Pester", "PSReadline" | Get-PackageUpdateInfo

## PARAMETERS

### -AllUsers

Only look for modules in the AllUsers/system directories.
Keep in mind, that admin rights are required to update those modules.

```yaml
Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: AllUsers
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -CurrentUser

Only look for modules in the current user profile.
This is helpfully if you're running without admin right, which you should always do as your default work preference.

```yaml
Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: CurrentUser
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -Name

The name of the module to check

```yaml
Type: String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -Repository

The repository to check

```yaml
Type: String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -ShowOnlyNeededUpdate

This switch suppresses up-to-date modules from the output.
Only output modules needed to update.

```yaml
Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.String[]

## OUTPUTS

### PackageUpdate.Info
