Export-​Uev​Package

Exports the settings stored in a settings package.

Syntax

Export-UevPackage
      [-Confirm]
      -LiteralPath <String[]>
      [-WhatIf]
      [<CommonParameters>]
Export-UevPackage
      [-Path] <String[]>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Export-UevPackage cmdlet exports the settings that are stored in a settings package to an XML file.

Examples

Example 1: Export a UE-V package

PS C:\> Export-UevPackage -Path "MicrosoftCalculator6.pkgx"
<SettingsDocument>
<registry>
<Setting Type="VT_BINARY" Name="registry://HKCU\Software\Microsoft\Calc\Window_Placement" Action="Update">LAAAAAAAAAABAAAA/////////////////////60AAABQAAAAVAIAANQBAAA=</Setting>
<Setting Type="VT_DWORD" Name="registry://HKCU\Software\Microsoft\Calc\layout" Action="Update">2</Setting>
</registry>
</SettingsDocument>

This command exports a settings package file for Microsoft calculator by using the Path parameter.

Example 2: Export a UE-V package by name

PS C:\> Export-UevPackage -Path "*calc*.pkgx"


<SettingsDocument>
<registry>
<Setting Type="VT_BINARY" Name="registry://HKCU\Software\Microsoft\Calc\Window_Placement" Action="Update">LAAAAAAAAAABAAAA/////////////////////60AAABQAAAAVAIAANQBAAA=</Setting>
<Setting Type="VT_DWORD" Name="registry://HKCU\Software\Microsoft\Calc\layout" Action="Update">2</Setting>
</registry>
</SettingsDocument>

This command exports a settings package file for Microsoft calculator by using wildcard characters in the file name.

Example 3: Export a UE-V package by path

PS C:\> Export-UevPackage -LiteralPath "MicrosoftCalculator6.pkgx"
<SettingsDocument>
<registry>
<Setting Type="VT_BINARY" Name="registry://HKCU\Software\Microsoft\Calc\Window_Placement" Action="Update">LAAAAAAAAAABAAAA/////////////////////60AAABQAAAAVAIAANQBAAA=</Setting>
<Setting Type="VT_DWORD" Name="registry://HKCU\Software\Microsoft\Calc\layout" Action="Update">2</Setting>
</registry>
</SettingsDocument>

This command exports a settings package file for Microsoft calculator. The example does not use wildcard characters in the path.

Required Parameters

-LiteralPath

Specifies an array of literal file paths. The cmdlet exports the settings location templates that have the literal paths that you specify.

Type:String[]
Aliases:PSPath
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Path

Specifies an array of file paths. The cmdlet exports the settings location templates that have the paths you specify. Use wildcards to specify multiple files.

Type:String[]
Aliases:Name
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

string[]

A collection of paths to the settings packages.

Outputs

System.String

This cmdlet generates XML text that describes the settings stored in the specified settings package.