# Get-PackageUpdateInfo

LLMS index: [llms.txt](/v1.2.6.0/llms.txt)

---

<!-- This file is auto-generated using PlatyPS + HUGO Workflow automation. Avoid editing directly! Original Front-Matter:
date: 2025-12-14
document type: cmdlet
external help file: PackageUpdateInfo-Help.xml
flagTranslation: Primary
HelpUri: ""
Locale: en-US
Module Name: PackageUpdateInfo
ms.date: 12/14/2026
PlatyPS schema version: 2024-05-01
title: Get-PackageUpdateInfo
type: docs
-->



## SINOPSIS

Obtiene información sobre la vigencia de los módulos instalados

## SINTAXIS

### DefaultSet1 (Predeterminado)

```
Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-ShowToastNotification] [-Force] [<CommonParameters>]
```

### CurrentUser

```
Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-ShowToastNotification] [-CurrentUser] [-Force] [<CommonParameters>]
```

### AllUsers

```
Get-PackageUpdateInfo [-Name <string[]>] [-Repository <string[]>] [-ShowOnlyNeededUpdate]
 [-ShowToastNotification] [-AllUsers] [-Force] [<CommonParameters>]
```

## ALIAS

Este cmdlet tiene los siguientes alias,

## DESCRIPCIÓN

Get-PackageUpdateInfo consulta los módulos instalados localmente y los compara con las versiones en línea para verificar su vigencia

## EJEMPLOS

### EJEMPLO 1

```powershell
PS C:\> Get-PackageUpdateInfo
```

Muestra información de actualización para todos los módulos (CurrentUser y AllUsers).
La salida puede ser como:

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

### EJEMPLO 2

```powershell
PS C:\> Get-PackageUpdateInfo -ShowOnlyNeededUpdate
```

Esto filtrará la salida para mostrar solo los módulos donde NeedUpdate es True
La salida puede ser como:

Name       Repository VersionInstalled VersionOnline NeedUpdate Path
----       ---------- ---------------- ------------- ---------- ----
Pester     PSGallery  4.4.0            4.4.2         True       C:\Program Files\WindowsPowerShell\Modules\Pester

### EJEMPLO 3

```powershell
PS C:\> "Pester", "PSReadline" | Get-PackageUpdateInfo
```

Se admite la canalización. Esto devuelve la información solo para los dos módulos "Pester" y "PSReadline"

Esto también se puede hacer con el cmdlet Get-Module:
Get-Module "Pester", "PSReadline" | Get-PackageUpdateInfo

## PARÁMETROS

### -AllUsers

Busca solo módulos en los directorios AllUsers/sistema.
Ten en cuenta que se requieren derechos de administrador para actualizar esos módulos.

```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

Busca solo módulos en el perfil del usuario actual.
Esto es útil si estás ejecutando sin derechos de administrador, lo cual siempre deberías hacer como preferencia predeterminada.

```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: ''
```

### -Force

Forzar la consulta de información sobre la vigencia de los módulos instalados, incluso si el intervalo de comprobación de actualización
desde la última revisión no ha expirado.

```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: ''
```

### -Name

El nombre del módulo a comprobar

```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

El repositorio a comprobar

```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

Este interruptor suprime los módulos que están actualizados en la salida.

```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: ''
```

### -ShowToastNotification

Este interruptor muestra notificaciones tipo toast de Windows con información de las notas de la versión en los módulos que necesitan actualización.

```yaml
Type: SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- ToastNotification
- Notify
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### CommonParameters

Este cmdlet admite los parámetros comunes: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction y -WarningVariable. Para más información, consulta
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## ENTRADAS

### System.String[]

## SALIDAS

### PackageUpdate.Info
