# Export-PackageUpdateInfo

LLMS index: [llms.txt](/llms.txt)

---

<!-- This file is auto-generated using PlatyPS + HUGO Workflow automation. Avoid editing directly! Original Front-Matter:
date: 2026-06-22
document type: cmdlet
external help file: PackageUpdateInfo-Help.xml
flagTranslation: Primary
HelpUri: https://packageupdateinfo.andibellstedt.com/docs/commands/export-packageupdateinfo/
Locale: en-US
Module Name: PackageUpdateInfo
ms.date: 06/22/2026
PlatyPS schema version: 2024-05-01
title: Export-PackageUpdateInfo
type: docs
-->



## SINOPSIS

Exporta objetos PackageUpdateInfo a un archivo XML, JSON o CSV.

## SINTAXIS

### __AllParameterSets

```
Export-PackageUpdateInfo [[-Path] <string>] -InputObject <Info[]> [-OutputFormat <string>]
 [-Encoding <string>] [-Force] [-Append] [-IncludeTimeStamp] [-PassThru] [-WhatIf] [-Confirm]
 [<CommonParameters>]
```

## ALIAS

Este cmdlet tiene los siguientes alias,

## DESCRIPCIÓN

Escribe objetos PackageUpdateInfo producidos por Get-PackageUpdateInfo en un archivo de datos estructurado para persistencia, informes o automatización posterior.
El cmdlet soporta formatos de salida XML, JSON y CSV, con opción de incluir marca de tiempo y modo de anexar para extender un archivo existente.
También soporta la creación del directorio destino cuando es necesario y puede pasar los objetos exportados de nuevo a través de la canalización.

## EJEMPLOS

### EJEMPLO 1

```powershell
PS C:\> Get-PackageUpdateInfo | Export-PackageUpdateInfo
```

Exporta los objetos PackageUpdateInfo actuales al archivo XML predeterminado.

### EJEMPLO 2

```powershell
PS C:\> Get-PackageUpdateInfo | Export-PackageUpdateInfo -OutputFormat JSON -Path .\updates.json -IncludeTimeStamp -PassThru
```

Exporta los datos como JSON, incluye una marca de tiempo para cada registro y pasa los objetos a través de la canalización.

### EJEMPLO 3

```powershell
PS C:\> Get-PackageUpdateInfo | Export-PackageUpdateInfo -OutputFormat CSV -Path .\updates.csv -Append -Force
```

Anexa los datos exportados a un archivo CSV y crea el directorio destino si no existe.

### EJEMPLO 4

```powershell
PS C:\> Get-PackageUpdateInfo | Export-PackageUpdateInfo -Path C:\Temp\PackageUpdateInfo.xml -Encoding utf8
```

Exporta los datos actuales a un archivo XML personalizado usando codificación UTF-8.

## PARÁMETROS

### -Append

Agrega la información exportada a un archivo existente en lugar de reemplazar su contenido actual.
Esto es compatible para salida JSON y CSV y se ignora para salida XML.

```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: ''
```

### -Confirm

Si este interruptor está habilitado, se te pedirá confirmación antes de ejecutar cualquier operación que cambie el estado.

```yaml
Type: SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -Encoding

La codificación del archivo a usar al crear o actualizar el archivo de exportación.

```yaml
Type: String
DefaultValue: default
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -Force

Crea el directorio padre para el archivo destino cuando no existe y la ruta especificada está fuera de la ubicación predeterminada.

```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: ''
```

### -IncludeTimeStamp

Agrega una propiedad TimeStamp a cada registro exportado para que la exportación capture la hora de exportación de cada entrada.

```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: ''
```

### -InputObject

Uno o más objetos PackageUpdateInfo para exportar.
Este parámetro acepta entrada por canalización desde Get-PackageUpdateInfo y comandos similares.

```yaml
Type: Info[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -OutputFormat

El formato de salida usado para la exportación.
Los valores soportados son "XML", "JSON" y "CSV".

```yaml
Type: String
DefaultValue: XML
SupportsWildcards: false
Aliases:
- Format
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -PassThru

Envía los objetos exportados a la canalización después de escribirlos en disco.

```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: ''
```

### -Path

La ruta del archivo destino para los datos exportados.
Especifica una ruta de archivo en lugar de una ruta de directorio.

El valor predeterminado de la ruta es:
Linux:   "$HOME/.config/powershell/PackageUpdateInfo/PackageUpdateInfo_$($PSEdition)_$($PSVersionTable.PSVersion.Major).xml"
Windows: "$HOME\AppData\Local\Microsoft\Windows\PowerShell\PackageUpdateInfo_$($PSEdition)_$($PSVersionTable.PSVersion.Major).xml"

```yaml
Type: String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- FullName
- FilePath
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### -WhatIf

Si este interruptor está habilitado, no se realizan acciones, pero se muestran mensajes informativos que explican qué pasaría si se ejecutara el comando.

```yaml
Type: SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
```

### CommonParameters

Este cmdlet soporta 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

### PackageUpdate.Info[]

## SALIDAS

### PackageUpdate.Info

## NOTAS

Versión  : 1.1.0.0  
Autor    : Andi Bellstedt  
Fecha    : 2026-06-21  
Palabras clave : PackageUpdateInfo, Update, Module, Export

## ENLACES RELACIONADOS

- [packageupdateinfo.andibellstedt.com/docs/commands/export-packageupdateinfo](https://packageupdateinfo.andibellstedt.com/docs/commands/export-packageupdateinfo/)
